Maybe fsync()?
See: http://blog.httrack.com/blog/2013/11/15/everything-you-always-wanted-to-know...
sync() is still a couple levels up from where things REALLY get written and buffers released. According to the Internet sync() just schedules writes sometime soon.
On 02/07/2018 01:26 PM, Alexandre Julliard wrote:
Oded Elisha oded123456@gmail.com writes:
@@ -1404,6 +1406,10 @@ BOOL WINAPI MoveFileWithProgressW( LPCWSTR source, LPCWSTR dest, } }
- if (should_sync) {
sync();
- }
That's not the right way to flush a file. You probably want something like FlushFileBuffers.