Compartir a través de


FlushFileBuffers (Windows CE 5.0)

Send Feedback

This function clears the buffers for the specified file and causes all buffered data to be written to the file.

BOOL WINAPI FlushFileBuffers(HANDLE hFile ); 

Parameters

  • 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 hFile is a handle to a communications device, the function only flushes the transmit buffer.

Return Values

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

Remarks

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

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.
Link Library: Coredll.lib.

See Also

WriteFile

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.