Re: shutdown handler
They are not unmounted, they are shut down :) (IIRC any file access after
this is failed with STATUS_FILE_CLOSED or such), and send the MJ_SHUTDOWN IRP
down the volume/disk stacks after this (even without
IoRegisterShutdownNotification).
MJ_POWER comes much later.
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@xxxxxxxxxxxxxxxx
http://www.storagecraft.com
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
news:%237FG3OuJGHA.2088@xxxxxxxxxxxxxxxxxxxxxxx
> Isn't IRP_MJ_SHUTDOWN called before FS are unmounted?
>
> "Doron Holan [MS]" <doronh@xxxxxxxxxxxxxxxxxxxx> wrote in message
> news:O4vAzDuJGHA.3444@xxxxxxxxxxxxxxxxxxxxxxx
> > instead of doing this, why not create the key which holds your registry
> > value as a volatile key. that way, nomatter what, it will not be present
> > on next boot. also be aware that if you register for a last chance
> > shutdown notification, you cannot cause paging i/o and registry access
> > will cause paging i/o, so you can't touch the registry in that function.
> >
> > d
> >
> > --
> > Please do not send e-mail directly to this alias. this alias is for
> > newsgroup purposes only.
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >
> >
> > "needhelp" <needhelp@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:E149AE0D-AFE8-4500-A672-ACFFD40D6E0D@xxxxxxxxxxxxxxxx
> >> All,
> >> I register shutdown handler using IoRegisterShutdownNotification. In my
> >> IRP_MJ_SHUTDOWN handler, I set a value in registry. I clear this registry
> >> in
> >> next boot. The problem i am having is this value is being set during a
> >> bugcheck. Is it possible that IRP_MJ_SHUTDOWN handler is called during
> >> BSOD
> >>
> >> Thanks
> >
> >
>
>
.
Relevant Pages
- Re: shutdown handler
... value as a volatile key. ... you cannot cause paging i/o and registry access will cause ... Please do not send e-mail directly to this alias. ... > I register shutdown handler using IoRegisterShutdownNotification. ... (microsoft.public.development.device.drivers) - Re: shutdown handler
... why not create the key which holds your registry ... > value as a volatile key. ... > Please do not send e-mail directly to this alias. ... >> I register shutdown handler using IoRegisterShutdownNotification. ... (microsoft.public.development.device.drivers) - Re: registry cleaner
... "Alias" wrote in message ... It booted up quicker and had better performance BEFORE the defrag, right after cleaning up the registry. ... registry entries and defragmenting 4,000 files. ... you can't do it yourself because System Suite 5 is no ... (microsoft.public.windowsxp.general) - Re: Writing data out before the system dies
... note that if a bugcheck occurs after your work, there is no guarantee it is ... Please do not send e-mail directly to this alias. ... registry access) can still occur w/out deadlocks. ... if you are not power pagable ... (microsoft.public.development.device.drivers) - Re: Problem creating full text index
... it appears that the machine's registry has information about a Full-Text ... Please do not send e-mail directly to this alias. ... A catalog with the name specified already exists. ... Are there any events that get logged when the MSSearch service is stopped ... (microsoft.public.exchange.admin) |
|