Lines Matching refs:hFile
69 static voidpf win32_build_iowin(HANDLE hFile)
73 if ((hFile != NULL) && (hFile != INVALID_HANDLE_VALUE))
76 w32fiow.hf = hFile;
81 CloseHandle(hFile);
92 HANDLE hFile = NULL;
97 hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
99 return win32_build_iowin(hFile);
107 HANDLE hFile = NULL;
112 hFile = CreateFileA((LPCSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
114 return win32_build_iowin(hFile);
122 HANDLE hFile = NULL;
127 hFile = CreateFileW((LPCWSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
129 return win32_build_iowin(hFile);
137 HANDLE hFile = NULL;
142 hFile = CreateFile((LPCTSTR)filename, dwDesiredAccess, dwShareMode, NULL, dwCreationDisposition, dwFlagsAndAttributes, NULL);
144 return win32_build_iowin(hFile);
151 HANDLE hFile = NULL;
153 hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
155 if (hFile != NULL)
157 if (!ReadFile(hFile, buf, size, &ret, NULL))
173 HANDLE hFile = NULL;
175 hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
177 if (hFile != NULL)
179 if (!WriteFile(hFile, buf, size, &ret, NULL))
194 HANDLE hFile = NULL;
196 hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
197 if (hFile != NULL)
199 DWORD dwSet = SetFilePointer(hFile, 0, NULL, FILE_CURRENT);
215 HANDLE hFile = NULL;
217 hFile = ((WIN32FILE_IOWIN*)stream)->hf;
219 if (hFile)
223 li.u.LowPart = SetFilePointer(hFile, li.u.LowPart, &li.u.HighPart, FILE_CURRENT);
240 HANDLE hFile = NULL;
244 hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
259 if (hFile != NULL)
261 DWORD dwSet = SetFilePointer(hFile, offset, NULL, dwMoveMethod);
277 HANDLE hFile = NULL;
281 hFile = ((WIN32FILE_IOWIN*)stream)->hf;
297 if (hFile)
300 DWORD dwSet = SetFilePointer(hFile, li->u.LowPart, &li->u.HighPart, dwMoveMethod);
319 HANDLE hFile;
320 hFile = ((WIN32FILE_IOWIN*)stream) -> hf;
321 if (hFile != NULL)
323 CloseHandle(hFile);