WdfIoQueueDrain() timeout

What is the recommended procedure to cancel a call to WdfIoQueueDrain() that is taking too long? I tried calling WdfIoQueueStart() in this scenario but that seems to put the framework into a bad state.

There is no way to cancel the drain call. If drain is taking too long, device removal (which can’t be canceled once committed) is hosed, so you need to fix the underlying problem.

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@qualcomm.com
Sent: Tuesday, August 6, 2013 2:32 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] WdfIoQueueDrain() timeout

What is the recommended procedure to cancel a call to WdfIoQueueDrain() that is taking too long? I tried calling WdfIoQueueStart() in this scenario but that seems to put the framework into a bad state.


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