FltFreeCallbackData function (fltkernel.h)

The FltFreeCallbackData routine frees a callback data structure allocated by the FltAllocateCallbackData routine.

Syntax

VOID FLTAPI FltFreeCallbackData(
  [in] PFLT_CALLBACK_DATA CallbackData
);

Parameters

[in] CallbackData

Pointer to the callback data structure to be freed. This FLT_CALLBACK_DATA structure must have been allocated by a previous call to FltAllocateCallbackData. This parameter is required and cannot be NULL.

Return value

None

Remarks

A minifilter driver should use FltFreeCallbackData only on a callback data structure (FLT_CALLBACK_DATA) that it previously allocated with FltAllocateCallbackData and used in a call to FltPerformAsynchronousIo or FltPerformSynchronousIo.

In particular, a minifilter driver should not use this routine for any callback data structures that were not allocated by the minifilter driver itself.

The FltFreeCallbackData routine frees any MDL chain associated with the supplied CallbackData object. A pointer to an MDL chain associated with a FLT_CALLBACK_DATA object will be invalid after a call to FltFreeCallbackData for that object.

Requirements

Requirement Value
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
IRQL <= DISPATCH_LEVEL

See also

FLT_CALLBACK_DATA

FltAllocateCallbackData

FltPerformAsynchronousIo

FltPerformSynchronousIo

FltReuseCallbackData