# Function Reference

# _WinAPI_GetModuleInformation

Retrieves information about the specified module

#include <WinAPIProc.au3>
_WinAPI_GetModuleInformation ( $hProcess [, $hModule = 0] )

## Parameters

$hProcess | Handle to the process that contains the module. The handle must have the $PROCESS_QUERY_INFORMATION or $PROCESS_QUERY_LIMITED_INFORMATION access right and the $PROCESS_VM_READ access right.
$hModule | [optional] Handle to the module. If this parameter is 0, the function retrieves information only about the executable file ("SizeOfImage" and "EntryPoint" members of the $tagMODULEINFO structure).

## Return Value

Success: | $tagMODULEINFO structure that contains information about the module.
Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information.

## Remarks

This function does not retrieve information for modules that were loaded with the $LOAD_LIBRARY_AS_DATAFILE flag.
For more information, see _WinAPI_LoadLibraryEx().

## Related

_WinAPI_LoadLibraryEx

## See Also

Search GetModuleInformation in MSDN Library.