Possible Duplicate:
Getting battery information of a windows CE 5.0 device
I need to check the battery level in a Windows CE device using c#. I need something like the Win32_Battery class but for Mobile Devices.
Thanks for any help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can p/invoke the
GetSystemPowerStatusExAPI to get battery status, see http://msdn.microsoft.com/en-us/library/aa453172.aspx for the details.A quick google search also yields a samples:
http://www.microsoft.com/en-us/download/details.aspx?id=11736
and a tutorial:
http://msdn.microsoft.com/en-us/library/aa446550.aspx