# Function Reference

# _WinAPI_GetFileType

Retrieves the file type of the specified file

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

## Parameters

$hFile | Handle to the file.

## Return Value

Success: | The file type ($FILE_TYPE_*).
Failure: | (-1) and sets the @error flag to non-zero, @extended flag may contain the system error code.

## Remarks

$FILE_TYPE_* constants require #include <APIFilesConstants.au3>

## See Also

Search GetFileType in MSDN Library.