Adding Completion Routine to Read Request (WDF)

Hi there,

I wanted to add a completion routine to the read request and then forward it to the lower driver in my Volume Filter. I am stuck at this because there is no clear example or explanation to do it. I found the example to forward the request but nowhere it talks about changing the request and then forwarding it.

If anybody have any idea or link where i can look this up it would be really helpful. I just want to add a completion routine to the Request and forward it.

Thanks
Suhail Ansari

WdfRequestFormatRequestUsingCurrentType
WdfRequestSetCompletionRoutine

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Monday, January 05, 2009 3:14 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Adding Completion Routine to Read Request (WDF)

Hi there,

I wanted to add a completion routine to the read request and then forward it to the lower driver in my Volume Filter. I am stuck at this because there is no clear example or explanation to do it. I found the example to forward the request but nowhere it talks about changing the request and then forwarding it.

If anybody have any idea or link where i can look this up it would be really helpful. I just want to add a completion routine to the Request and forward it.

Thanks
Suhail Ansari


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

Hi,

Thanks for the input. Does WdfRequestFormatRequestUsingCurrentType act as the same way as IoCopyCurrentIrpStackLocationToNext function does.

Thanks
Suhail

In a word: Yes.

Peter
OSR

Read the samples like DiskPerf.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

wrote in message news:xxxxx@ntdev…
> Hi there,
>
> I wanted to add a completion routine to the read request and then forward it to the lower driver in my Volume Filter. I am stuck at this because there is no clear example or explanation to do it. I found the example to forward the request but nowhere it talks about changing the request and then forwarding it.
>
> If anybody have any idea or link where i can look this up it would be really helpful. I just want to add a completion routine to the Request and forward it.
>
> Thanks
> Suhail Ansari
>