Skip to content

Latest commit

 

History

History
89 lines (61 loc) · 5.33 KB

nf-wudfddi-iqueuecallbackiocanceledonqueue-oniocanceledonqueue.md

File metadata and controls

89 lines (61 loc) · 5.33 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NF:wudfddi.IQueueCallbackIoCanceledOnQueue.OnIoCanceledOnQueue
IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue (wudfddi.h)
A driver's OnIoCanceledOnQueue event callback function informs the driver that an I/O request was canceled while it was in an I/O queue.
wdf\iqueuecallbackiocanceledonqueue_oniocanceledonqueue.htm
wdf
02/26/2018
IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue
IQueueCallbackIoCanceledOnQueue interface,OnIoCanceledOnQueue method, IQueueCallbackIoCanceledOnQueue.OnIoCanceledOnQueue, IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue, OnIoCanceledOnQueue, OnIoCanceledOnQueue method, OnIoCanceledOnQueue method,IQueueCallbackIoCanceledOnQueue interface, UMDFQueueObjectRef_e80a1257-b51e-46f8-8e9f-0fff3b830587.xml, umdf.iqueuecallbackiocanceledonqueue_oniocanceledonqueue, wdf.iqueuecallbackiocanceledonqueue_oniocanceledonqueue, wudfddi/IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue
wudfddi.h
Wudfddi.h
Desktop
1.9
Unavailable in UMDF 2.0 and later.
Windows
IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue
wudfddi/IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue
APIRef
kbSyntax
COM
Wudfddi.h
IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue

IQueueCallbackIoCanceledOnQueue::OnIoCanceledOnQueue

-description

[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's OnIoCanceledOnQueue event callback function informs the driver that an I/O request was canceled while it was in an I/O queue.

-parameters

-param pWdfQueue [in]

A pointer to the IWDFIoQueue interface for the I/O queue that the I/O request was in when it was canceled.

-param pWdfRequest [in]

A pointer to the IWDFIoRequest interface for the I/O request.

-remarks

A driver registers an I/O queue's IQueueCallbackIoCanceledOnQueue interface and OnIoCanceledOnQueue callback function when the driver calls the IWDFDevice::CreateIoQueue. For more information about how to register the interface, see IQueueCallbackIoCanceledOnQueue.

If a driver registers an OnIoCanceledOnQueue callback function for an I/O queue, the framework calls the callback function if a request handler receives an I/O request from an I/O queue, the driver calls IWDFIoRequest::ForwardToIoQueue or IWDFIoRequest2::Requeue to requeue the request to the I/O queue for which the OnIoCanceledOnQueue callback function is registered, and the associated I/O operation is subsequently canceled.

After the framework calls the OnIoCanceledOnQueue callback function, the driver owns the request object and, therefore, must cancel the request.

The framework does not call the driver's OnIoCanceledOnQueue callback function for I/O requests that the framework has never delivered to the driver.

The framework calls an OnIoCanceledOnQueue callback function as soon as it determines that an I/O request has been canceled, regardless of the dispatching method that the driver has set for the I/O queue. Therefore, the framework can call an OnIoCanceledOnQueue callback function for a request in a queue that uses sequential dispatching, even if the driver currently owns another request from the queue.

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

-see-also

IQueueCallbackIoCanceledOnQueue

IWDFDevice::CreateIoQueue

IWDFIoRequest::ForwardToIoQueue