Hello,

Why does the DDK say that only one driver in the stack should
register for a shutdown notification ? What if more than one drivers
in the stack need to know about a shutdown ?

Thanks,
- Gary.

A question on IoRegisterShutdownNotification() by Steve

Steve
Tue Nov 09 00:51:32 CST 2004

Where does the DDK say that only one driver in the stack
should register for a shutdown notification??

The help I've read suggests that any driver that requires
shutdown notifications can register for a shutdown
notification and will then receive IRP_MJ_SHUTDOWN just
prior to shutdown.

You could test this by installing 2 simple drivers which
both register for shutdown notification and then see if
they both get it!

>-----Original Message-----
>Hello,
>
>Why does the DDK say that only one driver in the stack
should
>register for a shutdown notification ? What if more than
one drivers
>in the stack need to know about a shutdown ?
>
>Thanks,
>- Gary.
>
>
>
>
>.
>

Re: A question on IoRegisterShutdownNotification() by Mark

Mark
Tue Nov 09 18:16:53 CST 2004

In article <490501c4c628$8c59bfa0$a601280a@phx.gbl>,
anonymous@discussions.microsoft.com says...
> Where does the DDK say that only one driver in the stack
> should register for a shutdown notification??
>

I think Gary is referring to this:
"Only one driver in a device stack should register to receive shutdown
notification." - the ddk.

However as he has asked this question in multiple forums, it has already been
answered.

> The help I've read suggests that any driver that requires
> shutdown notifications can register for a shutdown
> notification and will then receive IRP_MJ_SHUTDOWN just
> prior to shutdown.
>
> You could test this by installing 2 simple drivers which
> both register for shutdown notification and then see if
> they both get it!
>
> >-----Original Message-----
> >Hello,
> >
> >Why does the DDK say that only one driver in the stack
> should
> >register for a shutdown notification ? What if more than
> one drivers
> >in the stack need to know about a shutdown ?
> >
> >Thanks,
> >- Gary.
> >
> >
> >
> >
> >.
> >
>

--

=====================
Mark Roddy DDK MVP
Windows 2003/XP/2000 Consulting
Hollis Technology Solutions 603-321-1032
www.hollistech.com
markr@hollistech.com

Re: A question on IoRegisterShutdownNotification() by Alexander

Alexander
Sat Nov 13 20:43:59 CST 2004

I think the stack will receive SHUTDOWN for every driver that registered for
the notification. So it can be possible that the stack will receive the IRP
twice.

"Mark Roddy" <markr@hollistech.com> wrote in message
news:MPG.1bfb27ff48ca12f99896ea@news.microsoft.com...
> In article <490501c4c628$8c59bfa0$a601280a@phx.gbl>,
> anonymous@discussions.microsoft.com says...
>> Where does the DDK say that only one driver in the stack
>> should register for a shutdown notification??
>>
>
> I think Gary is referring to this:
> "Only one driver in a device stack should register to receive shutdown
> notification." - the ddk.
>
> However as he has asked this question in multiple forums, it has already
> been
> answered.
>
>> The help I've read suggests that any driver that requires
>> shutdown notifications can register for a shutdown
>> notification and will then receive IRP_MJ_SHUTDOWN just
>> prior to shutdown.
>>
>> You could test this by installing 2 simple drivers which
>> both register for shutdown notification and then see if
>> they both get it!
>>
>> >-----Original Message-----
>> >Hello,
>> >
>> >Why does the DDK say that only one driver in the stack
>> should
>> >register for a shutdown notification ? What if more than
>> one drivers
>> >in the stack need to know about a shutdown ?
>> >
>> >Thanks,
>> >- Gary.
>> >
>> >
>> >
>> >
>> >.
>> >
>>
>
> --
>
> =====================
> Mark Roddy DDK MVP
> Windows 2003/XP/2000 Consulting
> Hollis Technology Solutions 603-321-1032
> www.hollistech.com
> markr@hollistech.com