Lines Matching refs:hFile
82 static voidpf win32_build_iowin(HANDLE hFile) in win32_build_iowin() argument
86 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
89 w32fiow.hf = hFile; in win32_build_iowin()
94 CloseHandle(hFile); in win32_build_iowin()
105 HANDLE hFile = NULL; in win32_open64_file_func() local
112 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
118 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
123 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_func()
126 return win32_build_iowin(hFile); in win32_open64_file_func()
134 HANDLE hFile = NULL; in win32_open64_file_funcA() local
143 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_funcA()
147 …hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_funcA()
150 return win32_build_iowin(hFile); in win32_open64_file_funcA()
158 HANDLE hFile = NULL; in win32_open64_file_funcW() local
164 … hFile = CreateFile2((LPCWSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition,NULL); in win32_open64_file_funcW()
167 …hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, … in win32_open64_file_funcW()
170 return win32_build_iowin(hFile); in win32_open64_file_funcW()
178 HANDLE hFile = NULL; in win32_open_file_func() local
185 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
191 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
196 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open_file_func()
199 return win32_build_iowin(hFile); in win32_open_file_func()
206 HANDLE hFile = NULL; in win32_read_file_func() local
208 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_read_file_func()
210 if (hFile != NULL) in win32_read_file_func()
212 if (!ReadFile(hFile, buf, size, &ret, NULL)) in win32_read_file_func()
228 HANDLE hFile = NULL; in win32_write_file_func() local
230 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_write_file_func()
232 if (hFile != NULL) in win32_write_file_func()
234 if (!WriteFile(hFile, buf, size, &ret, NULL)) in win32_write_file_func()
246 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
249 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
252 DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, dwMoveMethod); in MySetFilePointerEx()
269 HANDLE hFile = NULL; in win32_tell_file_func() local
271 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_tell_file_func()
272 if (hFile != NULL) in win32_tell_file_func()
277 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell_file_func()
292 HANDLE hFile = NULL; in win32_tell64_file_func() local
294 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_tell64_file_func()
296 if (hFile) in win32_tell64_file_func()
301 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell64_file_func()
317 HANDLE hFile = NULL; in win32_seek_file_func() local
321 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_seek_file_func()
336 if (hFile != NULL) in win32_seek_file_func()
340 if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) in win32_seek_file_func()
355 HANDLE hFile = NULL; in win32_seek64_file_func() local
359 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_seek64_file_func()
375 if (hFile) in win32_seek64_file_func()
379 if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) in win32_seek64_file_func()
397 HANDLE hFile; in win32_close_file_func() local
398 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_close_file_func()
399 if (hFile != NULL) in win32_close_file_func()
401 CloseHandle(hFile); in win32_close_file_func()