Originally Posted by
Vithika
One potential solution is to use the pread and pwrite system calls, which provide the same functionality as read and write, but allow for a file offset to be specified as a parameter. This way, you can avoid all the complexities associated with synchronizing file offsets, and it should be more efficient as well.
Thank you, I'll look into that as soon as I report a bug in mingw, they hid the FileSetPointer & FileSetPointerEx behind this:
Code:
#if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP) || _WIN32_WINNT >= _WIN32_WINNT_WIN10
The 1st condition is fine but the 2nd is flat out wrong, that function was available way earlier than Windows 10 and I've not been able to compile as a result of it