I use GetModuleInformation for my project an missing this struct in the Windows.inc
MODULEINFO struct
lpBaseOfDll DWORD ?
SizeOfImage DWORD ?
EntryPoint DWORD ?
MODULEINFO ends
invoke GetModuleInformation, _hProcess, DWORD PTR [ebx],addr ModuleInfo,sizeof ModuleInfo
greets,
It might be in psapi.lib.
Library
Kernel32.lib on Windows 7 and Windows Server 2008 R2, Psapi.lib if PSAPI_VERSION=1 on Windows 7 and Windows Server 2008 R2, Psapi.lib on Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000
The structure definition will be in a header file, not a library. Here is the definition from psapi.h in the 2003 PSDK:
typedef struct _MODULEINFO {
LPVOID lpBaseOfDll;
DWORD SizeOfImage;
LPVOID EntryPoint;
} MODULEINFO, *LPMODULEINFO;