IRequestCallbackCancel interface (wudfddi.h)
[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.
Inheritance
The IRequestCallbackCancel interface inherits from the IUnknown interface. IRequestCallbackCancel also has these types of members:
- Methods
Methods
The IRequestCallbackCancel interface has these methods.
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.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | wudfddi.h |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for