Lines Matching refs:hFile
4440 HANDLE hFile;
4443 hFile = CreateFile(file_name, GENERIC_READ, FILE_SHARE_READ, NULL,
4445 if (hFile == NULL) {
4471 CloseHandle(hFile);
4482 bool res = ReadFile(hFile, base, (DWORD)bytes, &bytes_read, &overlapped) != 0;
4489 CloseHandle(hFile);
4493 HANDLE hMap = CreateFileMapping(hFile, NULL, PAGE_WRITECOPY, 0, 0,
4500 CloseHandle(hFile);
4513 CloseHandle(hFile);
4522 CloseHandle(hFile);
4539 CloseHandle(hFile);
4544 if (CloseHandle(hFile) == 0) {
4547 tty->print_cr("CloseHandle(hFile) failed: GetLastError->%ld.", err);