函数参考


_WinAPI_GetModuleFileNameEx

Retrieves the fully-qualified path for the file containing the specified module.

#Include <WinAPIEx.au3>
_WinAPI_GetModuleFileNameEx ( $hProcess [, $hModule] )

参数

$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 [可选参数] Handle to the module. If this parameter is 0, the function retrieves the path of the executable
file of the process.

返回值

Success The fully-qualified path to the module.
Failure Empty string and sets the @error flag to non-zero.

注意/说明

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

相关

详情参考

在MSDN中搜索