Thread: Module: Okapi
View Single Post
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 03-31-2014 , 21:42   Re: Module: Okapi
Reply With Quote #30

Quote:
Originally Posted by Arkshine View Post
In s_library.cpp, where it uses GetModuleInformation, I've added :

#pragma comment(lib, "Psapi.lib")
#pragma comment(lib, "Kernel32.lib")

#define PSAPI_VERSION 1

So, it will use Psapi.lib instead. With windows 7, some changes have been done around this function and to keep compatibility with XP, you need to laod Psapi and define PSAPI version to 1.
What a god, thanks buddy
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline