| 239 | } |
| 240 | |
| 241 | static BOOL MySetFilePointerEx(HANDLE hFile, LARGE_INTEGER pos, LARGE_INTEGER* newPos, DWORD dwMoveMethod) |
| 242 | { |
| 243 | #ifdef IOWIN32_USING_WINRT_API |
| 244 | return SetFilePointerEx(hFile, pos, newPos, dwMoveMethod); |
| 245 | #else |
| 246 | LONG lHigh = pos.HighPart; |
| 247 | DWORD dwNewPos = SetFilePointer(hFile, pos.LowPart, &lHigh, dwMoveMethod); |
| 248 | BOOL fOk = TRUE; |
| 249 | if (dwNewPos == 0xFFFFFFFF) |
| 250 | if (GetLastError() != NO_ERROR) |
| 251 | fOk = FALSE; |
| 252 | if ((newPos != NULL) && (fOk)) |
| 253 | { |
| 254 | newPos->LowPart = dwNewPos; |
| 255 | newPos->HighPart = lHigh; |
| 256 | } |
| 257 | return fOk; |
| 258 | #endif |
| 259 | } |
| 260 | |
| 261 | long ZCALLBACK win32_tell_file_func(voidpf opaque, voidpf stream) |
| 262 | { |
no outgoing calls
no test coverage detected