https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-flushfilebuffers?WT.mc_id=DT-MVP-5003978
FlushFileBuffers function (fileapi.h) - Win32 apps | Microsoft Learn
Flushes the buffers of a specified file and causes all buffered data to be written to a file.
functionhappsmicrosoftlearn