Dear all
what is cancelable IRP? If my WDM driver don’t set cancel routine, can this IRP can be canceled in my driver?
thank you very much.
Denny
Dear all
what is cancelable IRP? If my WDM driver don’t set cancel routine, can this IRP can be canceled in my driver?
thank you very much.
Denny
If you do not set a cancel routine, the irp can be canceled (Irp->Cancel is set to TRUE) but you will not be notified of it being canceled when it changes state. you can occasionally check Irp->Cancel if you support canceling an irp that is being processed, otherwise if you know your processing will deterministically complete the request you can skip checking the Cancel field. If the request is not being processed and is in a queue of work to do in the future, you should definitely set a cancel routine. In KMDF this is very easy, in WDM you can use a IO CSQ
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Wednesday, March 04, 2009 7:36 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] What is cancelable IRP
Dear all
what is cancelable IRP? If my WDM driver don’t set cancel routine, can this IRP can be canceled in my driver?
thank you very much.
Denny
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