how to avoid a PNP suprise removal message

hi,

Is there any way to avoid a PNP suprise removal pop
up message from appearing in Win2k.

Thanks
Philip


Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/


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

“ntdev ntdev” wrote in message news:xxxxx@ntdev…
>
> hi,
>
> Is there any way to avoid a PNP suprise removal pop
> up message from appearing in Win2k.
>

Yup. You can set “SurpriseRemovalOK” to TRUE in the DEVICE_CAPABILITIES
structure you return as a result of IRP_MN_QUERY_CAPABILITIES.

PeterGV


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

> Is there any way to avoid a PNP suprise removal pop

up message from appearing in Win2k.

SurpriseRemovalOk bit in DEVICE_CAPABILITIES.

Max


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

But, from long sad experience with this, be aware, be very aware, that the
driver below is allowed to change this bit and the driver above you might
change it also, even though that is technically not allowed.

You can fix up the behavior of the driver below you by using a completion
handler to catch the IRP on the way back up. There is nothing much you can
do, other than writing a filter driver, to change the behavior of the driver
above you.

Mark Roddy
Windows 2000/NT Consultant
Hollis Technology Solutions
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Peter Viscarola
Sent: Monday, January 29, 2001 6:50 PM
To: NT Developers Interest List
Subject: [ntdev] Re: how to avoid a PNP suprise removal message

“ntdev ntdev” wrote in message news:xxxxx@ntdev…
> >
> > hi,
> >
> > Is there any way to avoid a PNP suprise removal pop
> > up message from appearing in Win2k.
> >
>
> Yup. You can set “SurpriseRemovalOK” to TRUE in the DEVICE_CAPABILITIES
> structure you return as a result of IRP_MN_QUERY_CAPABILITIES.
>
> PeterGV
>
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
> 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