Lines Matching defs:hFile
70 HANDLE hFile;
83 hFile = CreateFile("tstFileAppendWin-1.tst",
90 if (hFile == INVALID_HANDLE_VALUE)
94 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
99 if (!WriteFile(hFile, "0123456789", 10, &cb, NULL))
103 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
111 if (ReadFile(hFile, szBuf, 1, &cb, NULL))
115 if (!SetFilePointerEx(hFile, off, &off, FILE_BEGIN))
120 CloseHandle(hFile);
126 hFile = CreateFile("tstFileAppendWin-1.tst",
133 if (hFile == INVALID_HANDLE_VALUE)
137 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
144 if (!WriteFile(hFile, "abcdefghij", 10, &cb, NULL))
148 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
155 CloseHandle(hFile);
163 hFile = CreateFile("tstFileAppendWin-1.tst",
170 if (hFile == INVALID_HANDLE_VALUE)
174 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
181 if (!ReadFile(hFile, szBuf, 10, &cb, NULL) || cb != 10)
187 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
194 if (!WriteFile(hFile, "klmnopqrst", 10, &cb, NULL))
198 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
206 if (ReadFile(hFile, szBuf, 1, &cb, NULL) && cb != 0)
210 if (!SetFilePointerEx(hFile, off, &off, FILE_BEGIN))
216 if (!ReadFile(hFile, szBuf, 10, &cb, NULL) || cb != 10)
222 if (!SetFilePointerEx(hFile, off, &off, FILE_CURRENT))
230 CloseHandle(hFile);
235 hFile = CreateFile("tstFileAppendWin-1.tst",
242 if (hFile == INVALID_HANDLE_VALUE)
246 if (WriteFile(hFile, "pqrstuvwx", 10, &cb, NULL))
249 CloseHandle(hFile);