raw-win32.c | 36 HANDLE hfile; member in struct:BDRVRawState 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) [all...] |