Re: shutdown handler

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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
    ... they are shut down:) (IIRC any file access after ... why not create the key which holds your registry ... >> Please do not send e-mail directly to this alias. ... >>> I register shutdown handler using IoRegisterShutdownNotification. ...
    (microsoft.public.development.device.drivers)
  • 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: How to create key in HKLMHARDWAREDEVICEMAPScsiScsi Port2Scsi Bus 0 ??
    ... It's a volatile key, you cannot create a subkey on a volatile key. ... Error writing to the registry ... I check the premision on registry and I should be able to create Key. ...
    (microsoft.public.windowsxp.general)
  • 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)