ATTEMPTED_SWITCH_FROM_DPC when WdfRequestSend Called

It means create an internal buffer. You can keep the WDFMEMORY that the completion routine passes to you for longer than the completion routine by adding a reference (WdfObjectReference) and then derer’ing it when you are done (WdfObjectDereference) as a way to create the internal buffer. You can also use the driver context area of the WDFMEMORY (specified in the WDF_OBJECT_ATTRIBUTES when you configure the cont reader) as the data structure to manager that chain of internal buffers.

Look up WDFWORKITEM (WdfWorkItemCreate etc)

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Sunday, September 26, 2010 6:51 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] ATTEMPTED_SWITCH_FROM_DPC when WdfRequestSend Called

Either queue a work item and stopot from there or just queue the data internally
until the sends another read data request.

I didn’t catch you , can you expatiate on the *work item* or any key words that i can google on it?
and queue the data internally means I need another queue ? or create a new internal buffer ?


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