Sir, I am developing an application for a device running WINDOWS CE 5.0. I want to know the battery/power information of the device. I am quit new in CE programming. Please make clear is there any difference between windows mobile programming and CE programming? I found MICROSOFT.WINDOWSMOBILE.STATUS namespace to work with. But when i include the reference, this namespace is not visible in the list. What should i do?
You need to P/Invoke GetSystemPowerStatusEx. An example is actually found in this old MSDN article.