What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [SOLVED] Notification/Log of Power State Changes?

[SOLVED] Notification/Log of Power State Changes?
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Notification/Log of Power State Changes?
quote:
Originally posted by SonicSam
quote:
Originally posted by CookieRevised
Never check it before myself, but maybe there are some Windows events you can check for this? eventvwr.msc
Checked that earlier, the only relevant event is Power-Troubleshooter which shows what wakes the machine out of sleep. Even that doesn't really help.
Hmm... you sure? Because there are special event messages for this according to MSDN. Maybe they are not enabled to show up in the Event Log by default though. So, if you can't find the correct settings to enable them or something like that, maybe you can make your own event logger catching the WM_POWERBROADCAST broadcasted Windows message with the PBT_APMPOWERSTATUSCHANGE event id. And when the app recieves this message, you can check the power state with the GetSystemPowerStatus API.

This post was edited on 09-05-2011 at 04:40 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
09-05-2011 04:35 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[SOLVED] Notification/Log of Power State Changes? - by prashker on 09-05-2011 at 06:04 AM
RE: Notification/Log of Power State Changes? - by CookieRevised on 09-05-2011 at 10:50 AM
RE: Notification/Log of Power State Changes? - by prashker on 09-05-2011 at 03:59 PM
RE: Notification/Log of Power State Changes? - by CookieRevised on 09-05-2011 at 04:05 PM
RE: Notification/Log of Power State Changes? - by prashker on 09-05-2011 at 04:08 PM
RE: Notification/Log of Power State Changes? - by CookieRevised on 09-05-2011 at 04:35 PM
RE: Notification/Log of Power State Changes? - by prashker on 09-05-2011 at 05:01 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On