Request Cancellation

I have a bus driver and if I received a WDfRequest on a Queue attached
to my child’s PDO, how can I know if that request needs to be cancelled.

Note that the request has already been delivered and not in queue. I
have a EvtIoCanceledOnQueue registered but is not being called.

What other way exists where my bus driver can know when to cancel that
request? If not cancelled it’s perfectly okay for me to keep it around
forever and it would be fine in some cases.

-pankaj

EvtIoCancledOnQueue is for requests in the queue that have not yet been presented in this wdfqueue but have been previously presented in another wdfqueue. It is not clear to me if you have called WdfRequestMarkCancelable or not. For a presented request to be cancelable you need to call this function and provide a cancel routine. If you want to poll for the cancelation state, you can call WdfRequestIsCanceled.

d

From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Pankaj Garg
Sent: Thursday, January 24, 2008 4:10 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Request Cancellation

I have a bus driver and if I received a WDfRequest on a Queue attached to my child’s PDO, how can I know if that request needs to be cancelled.
Note that the request has already been delivered and not in queue. I have a EvtIoCanceledOnQueue registered but is not being called.
What other way exists where my bus driver can know when to cancel that request? If not cancelled it’s perfectly okay for me to keep it around forever and it would be fine in some cases.

-pankaj


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer