Click or drag to resize

WindowsApiFlushFileBuffers Method

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

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
[DllImportAttribute("KERNEL32", SetLastError = true)]
public static void FlushFileBuffers(
	SafeFileHandle handle
)
View Source

Parameters

handle  SafeFileHandle
Remarks
Since the Flush(Boolean) method does not actually work, this finishes the flush to the disk file system. Which still could cache the results, but this is about the best we can do for a flush right now.
See Also