FlushFileBuffers(hFile)
Clears the buffers for the specified file and causes all buffered data to be written to the file.