Lines Matching refs:handle
31 p->handle = INVALID_HANDLE_VALUE;
41 p->handle = CreateFileA(name,
46 return (p->handle != INVALID_HANDLE_VALUE) ? 0 : GetLastError();
65 p->handle = CreateFileW(name,
70 return (p->handle != INVALID_HANDLE_VALUE) ? 0 : GetLastError();
79 if (p->handle != INVALID_HANDLE_VALUE)
81 if (!CloseHandle(p->handle))
83 p->handle = INVALID_HANDLE_VALUE;
110 BOOL res = ReadFile(p->handle, data, curSize, &processed, NULL);
145 BOOL res = WriteFile(p->handle, data, curSize, &processed, NULL);
182 value.LowPart = SetFilePointer(p->handle, value.LowPart, &value.HighPart, moveMethod);
215 DWORD sizeLow = GetFileSize(p->handle, &sizeHigh);