EVT_WDF_REQUEST_CANCEL - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// wdfrequest.h

EVT_WDF_REQUEST_CANCEL EvtWdfRequestCancel;

VOID EvtWdfRequestCancel(
  [in] WDFREQUEST Request
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-wdfrequest-evt_wdf_request_cancel)

EVT_WDF_REQUEST_CANCEL callback function

Description

[Applies to KMDF and UMDF]

A driver's EvtRequestCancel event callback function handles operations that must be performed when an I/O request is canceled.

Parameters

Request [in]

A handle to a framework request object that represents the I/O request that is being canceled.

Remarks

To register an EvtRequestCancel callback function, the driver must call WdfRequestMarkCancelable or WdfRequestMarkCancelableEx.

When the framework calls your driver's EvtRequestCancel callback function, if the driver can cancel the request, it must:

  1. Finish or stop processing the request, along with subrequests that it might have created.
  2. Call WdfRequestComplete, specifying a status value of STATUS_CANCELLED.

For more information about this callback function, see Canceling I/O Requests.

See also

WdfRequestComplete

WdfRequestMarkCancelable

WdfRequestMarkCancelableEx