G Guest May 24, 2004 #1 How can I get how many 100% of battery left? Besdies, How can I estimate how long the battery can last?
How can I get how many 100% of battery left? Besdies, How can I estimate how long the battery can last?
P Peter Foot [MVP] May 24, 2004 #2 The GetSystemPowerStatusEx API function will allow you to query the battery power as a percentage with estimated lifetime in seconds. This function is wrapped in the OpenNETCF Smart Device Framework Core class - www.opennetcf.org/sdf/. You can view the source here (http://www.opennetcf.org/sourcebrow...netPub/wwwroot/Source/OpenNETCF/Win32/Core.cs) Peter
The GetSystemPowerStatusEx API function will allow you to query the battery power as a percentage with estimated lifetime in seconds. This function is wrapped in the OpenNETCF Smart Device Framework Core class - www.opennetcf.org/sdf/. You can view the source here (http://www.opennetcf.org/sourcebrow...netPub/wwwroot/Source/OpenNETCF/Win32/Core.cs) Peter