Lines Matching refs:hfile
36 HANDLE hfile;
95 s->hfile = CreateFile(filename, access_flags,
98 if (s->hfile == INVALID_HANDLE_VALUE) {
121 ret = ReadFile(s->hfile, buf, count, &ret_count, &ov);
142 ret = WriteFile(s->hfile, buf, count, &ret_count, &ov);
153 FlushFileBuffers(s->hfile);
159 CloseHandle(s->hfile);
169 if (!SetFilePointer(s->hfile, low, &high, FILE_BEGIN))
171 if (!SetEndOfFile(s->hfile))
187 l.LowPart = GetFileSize(s->hfile, (PDWORD)&l.HighPart);
197 status = DeviceIoControl(s->hfile, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX,
349 s->hfile = CreateFile(filename, access_flags,
352 if (s->hfile == INVALID_HANDLE_VALUE) {
383 DeviceIoControl(s->hfile, IOCTL_STORAGE_EJECT_MEDIA,
386 DeviceIoControl(s->hfile, IOCTL_STORAGE_LOAD_MEDIA,