Re[1]: set io stack location

Tony Mason,Thank you.I think I get it now!


?? Mon, 11 Apr 2005 20:18:15 -0400 ??д???

Use:

IoCopyCurrentIrpStackLocationToNext to copy the parameter information
from your stack to the next driver’s stack.

IoGetNextIrpStackLocation to set individual parameters in the next
driver’s I/O stack location.

IoCallDriver to send the IRP to the next driver; this function will
adjust the stack pointer appropriately.

Use DbgPrint however you wish to use it. The format string is very
similar to printf. The output is displayed in the debugger, or may be
captured using one of the debug capture tools available (I recommend the
debugger because you are doing development).

Regards,

Tony

Tony Mason

Consulting Partner

OSR Open Systems Resources, Inc.

http://www.osr.com http:</http:>


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@yeah.net
Sent: Monday, April 11, 2005 8:13 PM
To: ntfsd redirect
Subject: [ntfsd] set io stack location

Hi,
In the IRP_MAJOR_READ dispatch routine, I did something like this at
first:

NTSTATUS status = STATUS_SUCCESS;
PIO_STACK_LOCATION IrpStack = IoGetCurrentIrpStackLocation(Irp);
//do something using IrpStack

but, I want to call the next driver now, How should I set the IO stack
location?

and, how should I use the function DbgPrint?

http:
>http:
>http:
>
> http:
>
>
>—
>Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17
>
>You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
>To unsubscribe send a blank email to xxxxx@lists.osr.com

-----------------------------------------</http:></http:></http:></http:>