Funktionreferenz


_WinAPI_GetFinalPathNameByHandle


Retrieves the final path of the specified file

#include <WinAPIFiles.au3>
_WinAPI_GetFinalPathNameByHandle ( $hFile )

Parameter

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

Rückgabewert

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

Bemerkungen

None.

Siehe auch

Suche nach ZwQueryInformationFile in der MSDN Bibliothek.

Beispiel

#include <WinAPIFiles.au3>
#include <WinAPIHObj.au3>

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

ConsoleWrite(_WinAPI_GetFinalPathNameByHandle($hFile) & @CRLF)

_WinAPI_CloseHandle($hFile)