33 DWORD fileType = FILE_TYPE_UNKNOWN;
43 if (hFile == INVALID_HANDLE_VALUE || hFile == (HANDLE) -2)
46 return FILE_TYPE_UNKNOWN;
49 fileType = GetFileType(hFile);
50 lastError = GetLastError();
57 if (fileType == FILE_TYPE_UNKNOWN && lastError != NO_ERROR)
60 return FILE_TYPE_UNKNOWN;
void _dosmaperr(unsigned long)
DWORD pgwin32_get_file_type(HANDLE hFile)