|
From: Bernd Giesen on 24 Jun 2008 14:13 Hi, does anyone know a way to programatically detect, if the machine (x86) is going to sleep state (S1-S4). I thought about hooking into a notification handler or something else. How could I manage that? kind regards, Bernd
From: Kellie Fitton on 24 Jun 2008 15:25 On Jun 24, 11:13 am, Bernd Giesen <Bernd.Gie...(a)gmx.net> wrote: > Hi, > > does anyone know a way to programatically detect, if the machine (x86) is > going to sleep state (S1-S4). I thought about hooking into a notification > handler or something else. How could I manage that? > > kind regards, > Bernd Hi, The following Windows message notifies applications that a power-management event has occurred: WM_POWERBROADCAST http://msdn.microsoft.com/en-us/library/aa373247(VS.85).aspx Kellie.
From: Gisle Vanem on 24 Jun 2008 15:29 "Bernd Giesen" wrote: > does anyone know a way to programatically detect, if the machine (x86) is > going to sleep state (S1-S4). I thought about hooking into a notification > handler or something else. How could I manage that? Detect and handle the WM_POWERBROADCAST message (if you're not a console-app that is). --gv
From: Bernd Giesen on 26 Jun 2008 14:58 Kellie Fitton wrote: > On Jun 24, 11:13�am, Bernd Giesen <Bernd.Gie...(a)gmx.net> wrote: >> Hi, >> >> does anyone know a way to programatically detect, if the machine (x86) is >> going to sleep state (S1-S4). I thought about hooking into a notification >> handler or something else. How could I manage that? >> >> kind regards, >> Bernd > > > > Hi, > > The following Windows message notifies applications that > a power-management event has occurred: > > WM_POWERBROADCAST > > http://msdn.microsoft.com/en-us/library/aa373247(VS.85).aspx > > Kellie. Thanks to all who replied. regards, Bernd
|
Pages: 1 Prev: MiniDumpWriteDump generates empty dumps Next: Please Recommend Help Tool For Visual Studio |