|
GetModuleInformation |
|
Description
Retrieves information about the specified module in the MODULEINFO structure.
C++ Syntax
PowerBASIC Syntax
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.
|
