Firstly I install HCT11.2.
When I install my usb driver,I found the system send the irp_mj_power,
irp_mn_bogus(softice reported) to the driver.
How can I deal with irp_mn_bogus ?

Irp->IoStatus.Information = 0
Irp->IoStatus.Status = STATUS_SUCCESS; //or STATUS_UNSUCCESSFU
IoCompleteRequest(Irp, IO_NO_INCREMENT)

Thanks a lot!

Re: How to deal with such irp as irp_mn_bogus? by Mark

Mark
Tue Jan 13 06:25:40 CST 2004

On Tue, 13 Jan 2004 02:21:08 -0800, "John"
<anonymous@discussions.microsoft.com> wrote:

> Firstly I install HCT11.2.
> When I install my usb driver,I found the system send the irp_mj_power,
>irp_mn_bogus(softice reported) to the driver.
> How can I deal with irp_mn_bogus ?
>
> Irp->IoStatus.Information = 0;
> Irp->IoStatus.Status = STATUS_SUCCESS; //or STATUS_UNSUCCESSFUL
> IoCompleteRequest(Irp, IO_NO_INCREMENT);
>
> Thanks a lot!

I'd simply send it to the driver below me and let him deal with it.
Use IoSkipCurrentIrpStackLocation and just get out of the way. These
irps are sent by driver verifier to test precisely what your driver
does with PnP irps it doesn't understand.



=====================
Mark Roddy
Windows .NET/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com

Re: How to deal with such irp as irp_mn_bogus? by Maxim

Maxim
Tue Jan 13 18:22:33 CST 2004

Pass it down. Function drivers never call IoCompleteRequest on power IRPs.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"John" <anonymous@discussions.microsoft.com> wrote in message
news:97A2DE86-9EA3-4207-A375-B22A47B26D0B@microsoft.com...
> Firstly I install HCT11.2.
> When I install my usb driver,I found the system send the irp_mj_power,
> irp_mn_bogus(softice reported) to the driver.
> How can I deal with irp_mn_bogus ?
>
> Irp->IoStatus.Information = 0;
> Irp->IoStatus.Status = STATUS_SUCCESS; //or STATUS_UNSUCCESSFUL
> IoCompleteRequest(Irp, IO_NO_INCREMENT);
>
> Thanks a lot!
>