How to create an IRP in filter

Hello!

Iam developing a upper filter driver for an USB device.
I want to generate a fresh IRP packet in my filter and sent it to the lower function driver.
How this can be done.
Pl explain with the steps involved.

vidya


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hello vdharan,

Take a look at the following in the DDK.

  1. IoBuildDeviceIoControlRequest , this function gives you a readymade =
    Irp
    with all the parameters.
    2.Another way is to use IoAllocateIrp.In this you will have to initiali=
    ze
    most of the parameters.

Britto.E.V
SCM Microsystems, Chennai.

=
=20
“vdharan” =
=20
Interest List" =20
edded.com> =
=20
Sent by: cc: =
=20
xxxxx@lis Subject: [ntdev] H=
ow to create an IRP in =20
ts.osr.com filter =
=20
=
=20
=
=20
02/28/2001 12:10 AM =
=20
Please respond to “NT =
=20
Developers Interest =
=20
List” =
=20
=
=20
=
=20

Hello!

Iam developing a upper filter driver for an USB device.
I want to generate a fresh IRP packet in my filter and sent it to the
lower function driver.
How this can be done.
Pl explain with the steps involved.

vidya


You are currently subscribed to ntdev as: xxxxx@scmmicro.co.in
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

=


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Thank U Britto,

My problem is , I don’t know where to call IoBuildDeviceIoControlRequest or
IoAllocateIrp.?

When I call IoAllocateIrp inside Dispatch…(…) , just after
IoCallDriver(…) Iam getting BlueScreen saying an Exception 0E has
occurred.

I want it to be like this. When ever I make a read call from my application,
I want my filter to send another IRP_MJ_READ to the lower driver.
How can I solve this ?..

vdharan

----- Original Message -----
From:
To: NT Developers Interest List
Sent: Monday, February 26, 2001 11:33 PM
Subject: [ntdev] Re: How to create an IRP in filter

>
>
> Hello vdharan,
>
> Take a look at the following in the DDK.
>
> 1. IoBuildDeviceIoControlRequest , this function gives you a readymade Irp
> with all the parameters.
> 2.Another way is to use IoAllocateIrp.In this you will have to initialize
> most of the parameters.
>
> ---------------------------------------
> Britto.E.V
> SCM Microsystems, Chennai.
>
>
>
>
>
> “vdharan”
> Interest List"
> edded.com>
> Sent by: cc:
> xxxxx@lis Subject: [ntdev] How
to create an IRP in
> ts.osr.com filter
>
>
> 02/28/2001 12:10 AM
> Please respond to “NT

> Developers Interest
> List”
>
>
>
>
>
>
>
> Hello!
>
> Iam developing a upper filter driver for an USB device.
> I want to generate a fresh IRP packet in my filter and sent it to the
> lower function driver.
> How this can be done.
> Pl explain with the steps involved.
>
> vidya
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@scmmicro.co.in
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@interfaceembedded.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Interface Embedded Systems Limited, India.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

vDharan

Please see the ISOUSB sample in DDK\SRC\WDM\USB\SYS. here you can see
example usage of both IoAllocateIrp and IoBuildDeviceIoControlRequest, may
be these examples will be useful to you as you are also talking about an
USB device.

BTW there are a lot of reasons for a blue screen, I once hit BSOD when I
was passing a NULL DeviceObject pointer to the call.

Hope this helps

Best Regards,

Britto.E.V
SCM Microsystems, Chennai.

“vdharan”
edded.com>
Sent by: cc:
xxxxx@lis Subject: [ntdev] Re: How to create an IRP in
ts.osr.com filter

02/28/2001 07:03 AM
Please respond to “NT
Developers Interest
List”

Thank U Britto,

My problem is , I don’t know where to call IoBuildDeviceIoControlRequest or
IoAllocateIrp.?

When I call IoAllocateIrp inside Dispatch…(…) , just after
IoCallDriver(…) Iam getting BlueScreen saying an Exception 0E has
occurred.

I want it to be like this. When ever I make a read call from my
application,
I want my filter to send another IRP_MJ_READ to the lower driver.
How can I solve this ?..

vdharan

----- Original Message -----
From:
To: NT Developers Interest List
Sent: Monday, February 26, 2001 11:33 PM
Subject: [ntdev] Re: How to create an IRP in filter

>
>
> Hello vdharan,
>
> Take a look at the following in the DDK.
>
> 1. IoBuildDeviceIoControlRequest , this function gives you a readymade
Irp
> with all the parameters.
> 2.Another way is to use IoAllocateIrp.In this you will have to initialize
> most of the parameters.
>
> ---------------------------------------
> Britto.E.V
> SCM Microsystems, Chennai.
>
>
>
>
>
> “vdharan”
> Interest List"
> edded.com>
> Sent by: cc:
> xxxxx@lis Subject: [ntdev] How
to create an IRP in
> ts.osr.com filter
>
>
> 02/28/2001 12:10 AM
> Please respond to “NT

> Developers Interest
> List”
>
>
>
>
>
>
>
> Hello!
>
> Iam developing a upper filter driver for an USB device.
> I want to generate a fresh IRP packet in my filter and sent it to the
> lower function driver.
> How this can be done.
> Pl explain with the steps involved.
>
> vidya
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@scmmicro.co.in
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@interfaceembedded.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

__________________________________________________
Interface Embedded Systems Limited, India.


You are currently subscribed to ntdev as: xxxxx@scmmicro.co.in
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com