I need to know how to get how much power is left in a laptop battery on Windows XP. It needs to be in a percent, or something I can convert to a percent like capacity and current charge. I've done google searches and not found much of any use.
I've done work with Visual Basic in the past and I know that you can call one of the Windows APIs to get all the information about the battery and even the statistics Windows keeps track of for more accurate life time predictions. I'm thinking if there's not a way to do this entirely in
Java, maybe I could call the Windows API (I've never done this in Java though) to get the info.
Anybody have any helpful information, pointers, or links?