Lines Matching refs:hFile
77 static voidpf win32_build_iowin(HANDLE hFile) in win32_build_iowin() argument
81 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE)) in win32_build_iowin()
84 w32fiow.hf = hFile; in win32_build_iowin()
89 CloseHandle(hFile); in win32_build_iowin()
100 HANDLE hFile = NULL; in win32_open64_file_func() local
107 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
113 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_func()
118 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_func()
121 return win32_build_iowin(hFile); in win32_open64_file_func()
129 HANDLE hFile = NULL; in win32_open64_file_funcA() local
138 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open64_file_funcA()
142 …hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open64_file_funcA()
145 return win32_build_iowin(hFile); in win32_open64_file_funcA()
153 HANDLE hFile = NULL; in win32_open64_file_funcW() local
159 … hFile = CreateFile2((LPCWSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition,NULL); in win32_open64_file_funcW()
162 …hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, … in win32_open64_file_funcW()
165 return win32_build_iowin(hFile); in win32_open64_file_funcW()
173 HANDLE hFile = NULL; in win32_open_file_func() local
180 … hFile = CreateFile2((LPCTSTR)filename, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
186 hFile = CreateFile2(filenameW, dwDesiredAccess, dwShareMode, dwCreationDisposition, NULL); in win32_open_file_func()
191 …hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, d… in win32_open_file_func()
194 return win32_build_iowin(hFile); in win32_open_file_func()
201 HANDLE hFile = NULL; in win32_read_file_func() local
203 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_read_file_func()
205 if (hFile != NULL) in win32_read_file_func()
207 if (!ReadFile(hFile, buf, size, &ret, NULL)) in win32_read_file_func()
223 HANDLE hFile = NULL; in win32_write_file_func() local
225 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_write_file_func()
227 if (hFile != NULL) in win32_write_file_func()
229 if (!WriteFile(hFile, buf, size, &ret, NULL)) in win32_write_file_func()
241 static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER *newPos, DWORD dwMov… in MySetFilePointerEx() argument
244 return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); in MySetFilePointerEx()
247 DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, dwMoveMethod); in MySetFilePointerEx()
264 HANDLE hFile = NULL; in win32_tell_file_func() local
266 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_tell_file_func()
267 if (hFile != NULL) in win32_tell_file_func()
272 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell_file_func()
287 HANDLE hFile = NULL; in win32_tell64_file_func() local
289 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_tell64_file_func()
291 if (hFile) in win32_tell64_file_func()
296 if (!MySetFilePointerEx(hFile, pos, &pos, FILE_CURRENT)) in win32_tell64_file_func()
312 HANDLE hFile = NULL; in win32_seek_file_func() local
316 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_seek_file_func()
331 if (hFile != NULL) in win32_seek_file_func()
335 if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) in win32_seek_file_func()
350 HANDLE hFile = NULL; in win32_seek64_file_func() local
354 hFile = ((WIN32FILE_IOWIN*)stream)->hf; in win32_seek64_file_func()
370 if (hFile) in win32_seek64_file_func()
374 if (!MySetFilePointerEx(hFile, pos, NULL, dwMoveMethod)) in win32_seek64_file_func()
392 HANDLE hFile; in win32_close_file_func() local
393 hFile = ((WIN32FILE_IOWIN*)stream) -> hf; in win32_close_file_func()
394 if (hFile != NULL) in win32_close_file_func()
396 CloseHandle(hFile); in win32_close_file_func()