GetModuleInformation
GetModuleInformation
The GetModuleInformation function retrieves information about the specified module in the MODULEINFO structure.
BOOL GetModuleInformation(
HANDLE hProcess,
HMODULE hModule,
LPMODULEINFO lpmodinfo,
DWORD cb
);
Parameters
hProcess
Handle to the process that contains the module. If this parameter is NULL, GetModuleInformation returns information for the calling process.
The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights. For more information, see Process Security and Access Rights.
hModule
Handle to the module.
lpmodinfo
[out] Pointer to the MODULEINFO structure that receives information about the module.
cb
Size of the MODULEINFO structure, in bytes.
Return Values
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
Requirements
Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header Declared in Psapi.h.
Library Link to Psapi.lib.
DLL Requires Psapi.dll.