PowerNotifications

  • Thread starter Thread starter Graham McKechnie
  • Start date Start date
G

Graham McKechnie

Hi,

Can anyone explain when turning a pocket PC back on, why I get two
notifications that the power is back on. The Message is PBT_TRANSITION and
the flag POWER_STATE_ON each time, immediately following each other with no
other notifications in between. I'm passing POWER_NOTIFY_ALL to
RequestPowerNotifications

Graham
 
You're certain they're both ON notifications? Typically you'l get the OFF
and then the ON - the OFF comes when you wake because there wasn't enough
time to process it before the device went to sleep.

-Chris
 
Chris,

The exact sequence is the following, after it comes back on
PBT_TRANSITION POWER_STATE_SUSPEND
PBT_TRANSITION 0
PBT_RESUME 0
PBT_TRANSITION POWER_STATE_ON
PBT_TRANSITION POWER_STATE_ON

Seems like I don't get an off. Any ideas from the above.

Graham
 
Back
Top