Function Reference


Retrieves a module handle for the specified module

#include <WinAPISys.au3>
_WinAPI_GetModuleHandleEx ( $sModule [, $iFlags = 0] )


$sModule The name of the loaded module (either a .dll or .exe file), or a pointer to an address in the module
(if the $GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS flag is specified). If this parameter is 0 or an empty
string, the function returns a handle to the file used to create the calling process (.exe file).
$iFlags [optional] This parameter can be one or more of the following values.

Return Value

Success: Handle to the specified module.
Failure: 0, call _WinAPI_GetLastError() to get extended error information.

See Also

Search GetModuleHandleEx in MSDN Library.