Export (0) Print
Expand All
2 out of 2 rated this helpful - Rate this topic

FlushFileBuffers

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function clears the buffers for the specified file and writes all buffered data to the file.


BOOL WINAPI FlushFileBuffers(
  HANDLE hFile 
); 
hFile

[in] Handle to an open file. The function flushes this file's buffers. The file handle must have GENERIC_WRITE access to the file.

If this parameter is a handle to a communications device, the function only flushes the transmit buffer.

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

The WriteFile function typically writes data to an internal buffer that the OS writes to disk on a regular basis. This function writes the buffered information for the specified file to disk.

Headerwinbase.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.