M
Mike D Sutton
I'm calling the GetSystemPowerStatusEx() API in a class from a Timer object's Tick event hander about once every 30 seconds. The
call itself works fine and I get back valid data however it always seems to return the same value until opening Start -> Settings ->
Power, which somehow refreshes the battery status and I start getting that value back in my application. Is there some way I can do
whatever the power screen is doing to refresh the status (I've tried both true and false as the last parameter, but no
difference?..)
Also is there a more accurate way of establishing the battery level, it seems it stays at 100% for a while then 'jumps' to about 80%
and so on rather than being a smooth progression, or is this a 'feature' of the memory/OS?
This is being written in C# 2003 for a Pocket PC.
Cheers,
Mike
call itself works fine and I get back valid data however it always seems to return the same value until opening Start -> Settings ->
Power, which somehow refreshes the battery status and I start getting that value back in my application. Is there some way I can do
whatever the power screen is doing to refresh the status (I've tried both true and false as the last parameter, but no
difference?..)
Also is there a more accurate way of establishing the battery level, it seems it stays at 100% for a while then 'jumps' to about 80%
and so on rather than being a smooth progression, or is this a 'feature' of the memory/OS?
This is being written in C# 2003 for a Pocket PC.
Cheers,
Mike