Hi,
Does smb. know a method how could I detect from a minifilter driver the transition of the system from normal running to hibernation or sleep, and vice versa, from hibernation or sleep to normal running? I need this both, for hibernation and sleep, and in both directions.
thank you very much,
Sandor LUKACS
Write a second PnP/WDM driver and look at the system power IRP there.
–
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> Hi,
>
> Does smb. know a method how could I detect from a minifilter driver the
transition of the system from normal running to hibernation or sleep, and vice
versa, from hibernation or sleep to normal running? I need this both, for
hibernation and sleep, and in both directions.
>
> thank you very much,
>
> Sandor LUKACS
>
Thanks Maxim for the reply,
If I understand correctly, this means, that 1) there is no way to filter power IRPs from a FS minifilter, and 2) there is no system callback that would allow me to achieve this without to much trouble.
I have no real experience with Power IRP, so, could I ask you check if the following two assumptions are correct?
- I suppose that I can filter for the Power IRPs in a disk filter driver
- the IRPs/states that I should be watching are: IRP_MN_SET_POWER, Parameters.Power.Type == SystemPowerState, and States like PowerSystemWorking or PowerSystemHibernate
thank you,
Sandor
Sandor:
I don’t know if this would help with what you’re trying to do or not,
but there is an object Ex Callback that can be used for at least some
form of power notifications going back to NT 4.0. I don’t really know
much about it, or what you seek to do, but, as I recall, Doron mentioned
it on his blog a while back. That he hasn’t yet mentioned it makes me
think that is not likely to help you, but as writing a separate driver
is a lot of work, I thought I would throw it out for your consideration.
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@bitdefender.com
Sent: Friday, August 10, 2007 03:29
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] hibernation and sleep detection
Thanks Maxim for the reply,
If I understand correctly, this means, that 1) there is no way to filter
power IRPs from a FS minifilter, and 2) there is no system callback that
would allow me to achieve this without to much trouble.
I have no real experience with Power IRP, so, could I ask you check if
the following two assumptions are correct?
- I suppose that I can filter for the Power IRPs in a disk filter
driver
- the IRPs/states that I should be watching are: IRP_MN_SET_POWER,
Parameters.Power.Type == SystemPowerState, and States like
PowerSystemWorking or PowerSystemHibernate
thank you,
Sandor
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thank you 
http://blogs.msdn.com/doronh/archive/2006/06/13/630493.aspx
Although as far as I understand this does NOT differentiate between sleep or hibernate, I think I can use it in most of the cases that I need.
have a nice day,
Sandor
Glad to hear that, Sandor. Makes me glad I finally posted it, because I
didn’t when I originally thought of it, as I wasn’t sure.
mm
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@bitdefender.com
Sent: Friday, August 10, 2007 08:28
To: Windows File Systems Devs Interest List
Subject: RE:[ntfsd] hibernation and sleep detection
Thank you 
http://blogs.msdn.com/doronh/archive/2006/06/13/630493.aspx
Although as far as I understand this does NOT differentiate between
sleep or hibernate, I think I can use it in most of the cases that I
need.
have a nice day,
Sandor
NTFSD is sponsored by OSR
For our schedule debugging and file system seminars
(including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars
You are currently subscribed to ntfsd as: xxxxx@evitechnology.com
To unsubscribe send a blank email to xxxxx@lists.osr.com