Re: Forwarding IRPs to A Completely Diff Stack

And if it doesn’t you can create a new Irp for your IO and complete the
original Irp when that Irp completes. A bit more complicated but entirely
do-able.

Mark Roddy

On Fri, Sep 11, 2015 at 3:25 AM, Doron Holan
wrote:

> Yes, you can if your irp has enough remaining stack locations to satisfy
> the target DevIceObject->StackSize value.
>
> d
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
> Sent: Thursday, September 10, 2015 11:33 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Forwarding IRPs to A Completely Diff Stack
>
> I am new to driver development.
>
> In the DDK, the IoCallDriver() is always described as passing the IRP DOWN
> the stack. But is it possible to forward my IRPs to another device object
> from another pnp stack. The device object may be a filter driver sitting in
> the middle of another independent PNP stack accepting my IRPs as if they
> are coming from the top of its own stack.
>
> I’m trying to slip my filter driver into an existing stack and have my
> filter driver takes over and modifies the existing behaviour of the stack.
>
> —
> 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
>
> —
> 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
>