IRP_MN_QUERY_STOP_DEVICE

Hello,

I donot want my device to be stopped, ever. So can I always fail
IRP_MN_QUERY_STOP_DEVICE by setting:
Irp->IoStatus.Status = STATUS_UNSUCCESSFUL

Is it safe to do so ?

Do I need to do this in both my Bus Driver and Function Driver for device
?

Thanks
Puja

Any device in the DeviceNode can veto IRP_MN_QUERY_STOP_DEVICE by completing
the IRP with error status on the IRP’s way down. There is no need to do it
in both the Bus Driver or the Function Driver.

You can do it in any one of the place, Preferably in a function driver. This
IRP is meant for resource balancing , so if any of the drivers in the driver
stack returns an error, the pnp manager aborts the operation.

~Sriram

-----Original Message-----
From: xxxxx@usa.net
To: NT Developers Interest List
Date: Tuesday, May 23, 2000 8:06 AM
Subject: [ntdev] IRP_MN_QUERY_STOP_DEVICE

Hello,

I donot want my device to be stopped, ever. So can I always fail
IRP_MN_QUERY_STOP_DEVICE by setting:
Irp->IoStatus.Status = STATUS_UNSUCCESSFUL

Is it safe to do so ?

Do I need to do this in both my Bus Driver and Function Driver for device
?

Thanks
Puja


You are currently subscribed to ntdev as: xxxxx@integramicro.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)