Lines Matching refs:hFile
15 typedef BOOL (WINAPI *CANCELIOEX)(HANDLE hFile, LPOVERLAPPED lpOverlapped);
92 HANDLE hFile;
94 hFile = CreateIoCompletionPort(INVALID_HANDLE_VALUE, NULL, 0, 0);
95 if (hFile == INVALID_HANDLE_VALUE) {
102 wd->iocp = hFile;
110 CloseHandle(hFile);
116 ctx->iocp = hFile;
196 f->hFile = CreateFile(f->file_name, access, sharemode,
199 if (f->hFile == INVALID_HANDLE_VALUE) {
211 if (CreateIoCompletionPort(f->hFile, wd->iocp, 0, 0) == NULL) {
226 if (f->hFile != INVALID_HANDLE_VALUE) {
227 if (!CloseHandle(f->hFile)) {
233 f->hFile = INVALID_HANDLE_VALUE;
326 success = WriteFile(io_u->file->hFile, io_u->xfer_buf, io_u->xfer_buflen, &iobytes, lpOvl);
329 success = ReadFile(io_u->file->hFile, io_u->xfer_buf, io_u->xfer_buflen, &iobytes, lpOvl);
334 success = FlushFileBuffers(io_u->file->hFile);