IRequestCallbackCancel interface

[Warning: UMDF 2 is the latest version of UMDF and supersedes UMDF 1. All new UMDF drivers should be written using UMDF 2. No new features are being added to UMDF 1 and there is limited support for UMDF 1 on newer versions of Windows 10. Universal Windows drivers must use UMDF 2. For more info, see Getting Started with UMDF.]

A driver is notified when an I/O request that the driver is currently processing is to be canceled. The driver is notified when an application calls the Microsoft Win32 CancelIo, CancelIoEx, or CancelSynchronousIo function. The driver can handle the notification by registering the IRequestCallbackCancel interface.

Members

The IRequestCallbackCancel interface inherits from the IUnknown interface. IRequestCallbackCancel also has these types of members:

Methods

The IRequestCallbackCancel interface has these methods.

MethodDescription
IRequestCallbackCancel::OnCancel

The OnCancel method is called when an application cancels an I/O operation through the Microsoft Win32 CancelIo, CancelIoEx, or CancelSynchronousIo function.

 

Remarks

A driver registers the IRequestCallbackCancel interface when it calls the IWDFIoRequest::MarkCancelable method to enable the canceling of an I/O request. For more information about how to cancel I/O requests, see Canceling I/O Requests.

 

 

Send comments about this topic to Microsoft

Show: