Lines Matching refs:hFile
76 static voidpf win32_build_iowin(HANDLE hFile) in win32_build_iowin() argument
80 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
83 w32fiow.hf = hFile; in win32_build_iowin()
88 CloseHandle(hFile); in win32_build_iowin()
99 HANDLE hFile = NULL; in win32_open64_file_func() local
106 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
112 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
117 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_func()
120 return win32_build_iowin(hFile); in win32_open64_file_func()
128 HANDLE hFile = NULL; in win32_open64_file_funcA() local
137 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_funcA()
141 …hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_funcA()
144 return win32_build_iowin(hFile); in win32_open64_file_funcA()
152 HANDLE hFile = NULL; in win32_open64_file_funcW() local
158 … hFile = CreateFile2((LPCWSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition,NULL); in win32_open64_file_funcW()
161 …hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, … in win32_open64_file_funcW()
164 return win32_build_iowin(hFile); in win32_open64_file_funcW()
172 HANDLE hFile = NULL; in win32_open_file_func() local
179 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
185 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
190 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open_file_func()
193 return win32_build_iowin(hFile); in win32_open_file_func()
200 HANDLE hFile = NULL; in win32_read_file_func() local
202 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_read_file_func()
204 if (hFile != NULL) in win32_read_file_func()
206 if (!ReadFile(hFile, buf, size, &ret, NULL)) in win32_read_file_func()
222 HANDLE hFile = NULL; in win32_write_file_func() local
224 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_write_file_func()
226 if (hFile != NULL) in win32_write_file_func()
228 if (!WriteFile(hFile, buf, size, &ret, NULL)) in win32_write_file_func()
240 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
243 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
246 DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, FILE_CURRENT); in MySetFilePointerEx()
263 HANDLE hFile = NULL; in win32_tell_file_func() local
265 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_tell_file_func()
266 if (hFile != NULL) in win32_tell_file_func()
271 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell_file_func()
286 HANDLE hFile = NULL; in win32_tell64_file_func() local
288 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_tell64_file_func()
290 if (hFile) in win32_tell64_file_func()
295 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell64_file_func()
311 HANDLE hFile = NULL; in win32_seek_file_func() local
315 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_seek_file_func()
330 if (hFile != NULL) in win32_seek_file_func()
334 if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) in win32_seek_file_func()
349 HANDLE hFile = NULL; in win32_seek64_file_func() local
353 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_seek64_file_func()
369 if (hFile) in win32_seek64_file_func()
373 if (!MySetFilePointerEx(hFile, pos, NULL, FILE_CURRENT)) in win32_seek64_file_func()
391 HANDLE hFile; in win32_close_file_func() local
392 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_close_file_func()
393 if (hFile != NULL) in win32_close_file_func()
395 CloseHandle(hFile); in win32_close_file_func()