GetModuleInformation

 

Description

 

Retrieves information about the specified module in the MODULEINFO structure.

 

C++ Syntax

 

BOOL WINAPI GetModuleInformation(

__in  HANDLE hProcess,

__in  HMODULE hModule,

__out LPMODULEINFO lpmodinfo,

__in  DWORD cb

);

 

PowerBASIC Syntax

 

FUNCTION GetModuleInformation ( _

BYVAL hProcess AS DWORD, _

BYVAL hModule AS DWORD, _

BYREF lpmodinfo AS MODULEINFO, _

BYVAL cb AS DWORD _

) AS LONG

 

Parameters

 

hProcess

 

[in] A handle to the process that contains the module.

 

The handle must have the PROCESS_QUERY_INFORMATION and PROCESS_VM_READ access rights.

 

hModule

 

[in] A handle to the module.

 

lpmodinfo

 

[out] A pointer to the MODULEINFO structure that receives information about the module.

 

cb

 

[in] The size of the MODULEINFO structure, in bytes.

 

Return Value

 

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.

 

Remarks

 

To get information for the calling process, pass the handle returned by GetCurrentProcess.

 

The GetModuleInformation function does not retrieve information for modules that were loaded with the LOAD_LIBRARY_AS_DATAFILE flag. For more information, see LoadLibraryEx.

 

Valid XHTML 1.0 Transitional