DECLAREINTEGER FlushFileBuffers IN kernel32;
[in] A handle to an open file.
If the function succeeds, the return value is nonzero.
Parameter hFile is different from the handle returned by VFP low-level file functions FOPEN() and FCREATE().
Typically the WriteFile and WriteFileEx functions write data to an internal buffer that the OS writes to a disk on a regular basis. The FlushFileBuffers function writes to a disk all the buffered information for a specified file.