Platform SDK: Performance Monitoring |
The MODULEINFO structure contains the module load address, size, and entry point.
typedef struct _MODULEINFO { LPVOID lpBaseOfDll; DWORD SizeOfImage; LPVOID EntryPoint; } MODULEINFO, *LPMODULEINFO;
The load address of a module is the same as the HMODULE value. The information returned in the SizeOfImage and EntryPoint members comes from the module's Portable Executable (PE) header. The module entry point is the location called during process startup, thread startup, process shutdown, and thread shutdown. While this is not the address of the DllMain function, it should be close enough for most purposes.
Windows NT/2000: Requires Windows NT 4.0 or later.
Header: Declared in Psapi.h.
Process Status Helper Overview, PSAPI Structures, DllMain, GetModuleInformation