GetFileType

  DWORD GetFileType(hFile)    
  HANDLE hFile; /* identifies the file */

The GetFileType returns the type of the specified file.

Parameters

hFile

Identifies an open file handle.

Return Value

The return value is one of the following values:

Value Meaning

FILE_TYPE_UNKNOWN The type of the specified file is unknown.
FILE_TYPE_DISK The specified file is a disk file.
FILE_TYPE_CHAR The specified file is a character file (typically an LPT device or a console).
FILE_TYPE_PIPE The specified file is a pipe (either a named or anonymous pipe).

See Also

GetFileSize, GetFileTime