函数参考


_WinAPI_GetFinalPathNameByHandle

Retrieves the final path of the specified file.

#Include <WinAPIEx.au3>
_WinAPI_GetFinalPathNameByHandle ( $hFile )

参数

$hFile Handle to a file or directory whose path is to be retrieved.

返回值

Success The path of the file.
Failure Empty string and sets the @error flag to non-zero, @extended flag may contain the NTSTATUS code.

注意/说明

None

相关

详情参考

在MSDN中搜索


示例/演示


#Include <WinAPIEx.au3>

Opt('MustDeclareVars', 1)

Global $hFile

$hFile = _WinAPI_CreateFile(@ScriptFullPath, 2, 0, 6)

ConsoleWrite(_WinAPI_GetFinalPathNameByHandle($hFile) & @CR)

_WinAPI_CloseHandle($hFile)