31 _pgfseeko64(FILE *stream,
pgoff_t offset,
int origin)
34 HANDLE hFile = (HANDLE) _get_osfhandle(_fileno(stream));
40 if (fileType == FILE_TYPE_DISK)
41 return _fseeki64(stream, offset, origin);
42 else if (fileType == FILE_TYPE_CHAR || fileType == FILE_TYPE_PIPE)
56 _pgftello64(FILE *stream)
59 HANDLE hFile = (HANDLE) _get_osfhandle(_fileno(stream));
65 if (fileType == FILE_TYPE_DISK)
66 return _ftelli64(stream);
67 else if (fileType == FILE_TYPE_CHAR || fileType == FILE_TYPE_PIPE)
DWORD pgwin32_get_file_type(HANDLE hFile)