MODULEINFO structure (psapi.h)

Contains the module load address, size, and entry point.

Syntax

typedef struct _MODULEINFO {
  LPVOID lpBaseOfDll;
  DWORD  SizeOfImage;
  LPVOID EntryPoint;
} MODULEINFO, *LPMODULEINFO;

Members

lpBaseOfDll

The load address of the module.

SizeOfImage

The size of the linear space that the module occupies, in bytes.

EntryPoint

The entry point of the module.

Remarks

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.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Header psapi.h

See also

GetModuleInformation