Tech Support > Microsoft Windows > Drivers > detecting system shutdown
detecting system shutdown
Posted by Elbit Dev on August 1st, 2004


Hi All,
I need to detect a system shutdown event in mass storage
device driver. I can't use dispatchShutdown.
is there anyway I can make a query for windows status.
thanks.
raz

Posted by Maxim S. Shatskih on August 1st, 2004


Track IRP_MJ_POWER/System/Set/S5.

Note that MJ_SHUTDOWN is sent when the filesystems is still usable, and the
power IRP is not - you cannot do file work from the power IRP going to S5.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com

"Elbit Dev" <anonymous@discussions.microsoft.com> wrote in message
news:82e901c477e5$188d8340$a301280a@phx.gbl...


Posted by elbit dev on August 2nd, 2004


I don't get IRP_MJ_POWER on system shutdown.
if registering MJ_SHUTDOWN windows call the dispatch
function but not finishing the shutdown process. our
systems configure to shutdown to the "it's now safe to
turn off your computer" screen.




Similar Posts