Cancel surely can fail; no? The UM API CancelIO(Ex) is certainly documented to be able to fail and anyway it provides no guarantee that the irp completes any faster
Sent from Surface Pro
From: Mark Roddy
Sent: Tuesday, February 17, 2015 3:09 PM
To: Windows System Software Devs Interest List
On Tue, Feb 17, 2015 at 2:08 PM, wrote:
Well, no. There’s no “only way”… MY personal favorite way is to put pending Requests on a WDFQueue while they’re in progress. That pretty much eliminates the race problems. At least for me.
That works if you can always cancel a request, otherwise you are back to self managing the race condition.
Mark Roddy
— NTDEV is sponsored by OSR Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev OSR is HIRING!! See http://www.osr.com/careers 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