Expand Minimize

FltGetNewSystemBufferAddress function

The FltGetNewSystemBufferAddress function retrieves the AssociatedIrp.SystemBuffer buffer, which the file system has allocated. A minifilter driver's post-callback routine calls this function.

Syntax


PVOID FltGetNewSystemBufferAddress(
  _In_  PFLT_CALLBACK_DATA CallbackData
);

Parameters

CallbackData [in]

A pointer to a FLT_CALLBACK_DATA structure that represents an I/O operation.

Return value

If the AssociatedIrp.SystemBuffer buffer was allocated by the file system, FltGetNewSystemBufferAddress returns a pointer to this buffer; otherwise it returns NULL.

Remarks

A minifilter driver's post-callback routine calls FltGetNewSystemBufferAddress function to retrieve a pointer to the AssociatedIrp.SystemBuffer buffer that the file system has allocated. A minifilter driver should call this function only when the FLTFL_CALLBACK_DATA_NEW_SYSTEM_BUFFER flag is set in CallbackData.Flags.

When the file system allocates its own AssociatedIrp.SystemBuffer buffer, Filter Manager will set the FLTFL_CALLBACK_DATA_NEW_SYSTEM_BUFFER flag. This signals the minifilter that the buffer they received in the pre-operation is not the one that has the data read from the file system.

If the FLTFL_CALLBACK_DATA_NEW_SYSTEM_BUFFER flag is not set, then this routine returns NULL.

Requirements

Version

Available in Microsoft Windows 7 and later versions of the Windows operating system.

Header

Fltkernel.h (include Fltkernel.h)

Library

Fltmgr.lib

IRQL

<= DISPATCH_LEVEL

See also

FLT_CALLBACK_DATA

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft