GetSystemPowerState Output not defined in pm.h
Posted
by Vaccano
on Stack Overflow
See other posts from Stack Overflow
or by Vaccano
Published on 2010-06-08T19:15:34Z
Indexed on
2010/06/08
19:32 UTC
Read the original article
Hit count: 240
windows-mobile
|compact-framework
I am trying to get the user idle state of my Windows Mobile device.
When I run the function GetSystemPowerState (after 15 min of not touching the device) I get the following value:
Dec: 302055424
Hex: 0x12010000
Bin: 10010000000010000000000000000
I was hoping that PowerState & POWER_STATE_USERIDLE == POWER_STATE_USERIDLE
would be true. But POWER_STATE_USERIDLE is 0x01000000 and I have 0x02000000.
I went to look up 0x02000000 and found that it is not in pm.h.
What does 0x02000000 mean? Where could I go to find out?
© Stack Overflow or respective owner