FltFlushBuffers
TOC
Collapse the table of content
Expand the table of content

FltFlushBuffers routine

The FltFlushBuffers routine is used by the minifilter driver to send a flush request for a given file to the file system.

Syntax


NTSTATUS FltFlushBuffers(
  _In_ PFLT_INSTANCE Instance,
  _In_ PFILE_OBJECT  FileObject
);

Parameters

Instance [in]

Opaque instance pointer for the caller. This parameter is required and cannot be NULL.

FileObject [in]

File object pointer for the file. This parameter is required and cannot be NULL.

Return value

FltFlushBuffers returns STATUS_SUCCESS or an appropriate NTSTATUS value such as one of the following:

Return codeDescription
STATUS_MEDIA_WRITE_PROTECTED

The file resides on a write-protected volume. This is an error code.

STATUS_VOLUME_DISMOUNTED

The file resides on a volume that is not currently mounted. This is an error code.

 

Remarks

A minifilter driver can call FltFlushBuffers to issue an IRP_MJ_FLUSH_BUFFERS request to the file system for a given file. The flush operation is synchronous and is issued to the instance(s) below the specified instance.

Requirements

Target platform

Universal

Header

Fltkernel.h (include Fltkernel.h)

Library

FltMgr.lib

IRQL

PASSIVE_LEVEL

See also

IRP_MJ_FLUSH_BUFFERS

 

 

Send comments about this topic to Microsoft

Show:
© 2016 Microsoft