Bewerken

Delen via


FltClearCancelCompletion function (fltkernel.h)

FltClearCancelCompletion clears a cancel routine that was specified for an I/O operation.

Syntax

NTSTATUS FLTAPI FltClearCancelCompletion(
  [in] PFLT_CALLBACK_DATA CallbackData
);

Parameters

[in] CallbackData

Pointer to the callback data (FLT_CALLBACK_DATA) structure for the I/O operation.

Return value

If no cancel routine was previously set or if IRP cancellation is already in progress, FltClearCancelCompletion returns STATUS_CANCELLED. Otherwise, it returns STATUS_SUCCESS.

Remarks

A minifilter driver calls FltClearCancelCompletion to clear a cancel routine that was specified for an I/O operation by a previous call to FltSetCancelCompletion. The operation must be an IRP-based I/O operation. To determine whether a given callback data (FLT_CALLBACK_DATA) structure represents an IRP-based I/O operation, use the FLT_IS_IRP_OPERATION macro.

To cancel an I/O operation, call FltCancelIo.

Requirements

Requirement Value
Target Platform Universal
Header fltkernel.h (include Fltkernel.h)
Library FltMgr.lib
IRQL Any level

See also

FLT_CALLBACK_DATA

FLT_IS_IRP_OPERATION

FltCancelIo

FltSetCancelCompletion