WdfRequestSend Fails with STATUS_CANCELLED

Hi,

WdfRequestSend Fails with STATUS_CANCELLED after I purge a IOTarget. Below
is the sequence of things I am doing:

1> Purge IO Target with WdfIoTargetPurgeIoAndWait. In completion routine I
mark the request for resuse.
2> Start the IO Target with WdfIotargetStart and resend the events to IO
Target. I don’t see any failure in starting the target but when i send the
request, WdfRequestSend fails. I used WdfRequestGetStatus to get the
status and it return STATUS_CANCELLED.

Does anyone know what going wrong here?

Thanks,

Ruby

Stopping the target with purge will cancel all outstanding io and the request is left in the cancelled state. Call wdfrequestreuse to reset the state

d


From: Ruby Siddhumailto:xxxxx
Sent: ?1/?31/?2013 9:14 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] WdfRequestSend Fails with STATUS_CANCELLED

Hi,

WdfRequestSend Fails with STATUS_CANCELLED after I purge a IOTarget. Below is the sequence of things I am doing:

1> Purge IO Target with WdfIoTargetPurgeIoAndWait. In completion routine I mark the request for resuse.
2> Start the IO Target with WdfIotargetStart and resend the events to IO Target. I don’t see any failure in starting the target but when i send the request, WdfRequestSend fails. I used WdfRequestGetStatus to get the status and it return STATUS_CANCELLED.

Does anyone know what going wrong here?

Thanks,


Ruby

— NTDEV is sponsored by OSR 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</mailto:xxxxx></mailto:xxxxx>