News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

New Struct for Windows.inc

Started by ragdog, March 29, 2011, 11:33:27 PM

Previous topic - Next topic

ragdog

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,

Magnum

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
Have a great day,
                         Andy

MichaelW

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;
eschew obfuscation