Function Reference


Flushes the buffers of a specified file and causes all buffered data to be written

#include <WinAPIFiles.au3>
_WinAPI_FlushFileBuffers ( $hFile )


$hFile Handle to an open file. The file handle must have the $GENERIC_WRITE access right.
If $hFile is a handle to a communications device, the function only flushes the transmit buffer.
If $hFile is a handle to the server end of a named pipe the function does not return until the client has read all buffered data from the pipe.

Return Value

Success: True
Failure: False, call _WinAPI_GetLastError() to get extended error information


_WinAPI_CloseHandle, _WinAPI_CreateFile, _WinAPI_GetFileSizeEx, _WinAPI_ReadFile, _WinAPI_SetEndOfFile, _WinAPI_SetFilePointer, _WinAPI_WriteFile

See Also

Search FlushFileBuffers in MSDN Library.