"Erich E. Hoover" erich.e.hoover@wine-staging.com writes:
LARGE_INTEGER offset;
int status;
/* set the file offset to the desired point */
offset.u.LowPart = overlapped->u.s.Offset;
offset.u.HighPart = overlapped->u.s.OffsetHigh;
SetFilePointerEx( wsa->file, offset, NULL, FILE_BEGIN );
You need to handle overlapped files differently, using pread() instead of setting the file pointer.