Hi all ! :)
I am trying to find a way to return the battery level of a notebook or
laptop or any mobile device (but to make it simple a laptop would be
fine).
I am trying to do this because I'm building for a project a small part
of an interface for a computational grid that would accommodate in
adition to the usual devices, wireless ones too.
( So I'm trying to measure what a device will be able to offer to the
Grid ... the next step will be to measure what applications are
running on a device and so on. )
I am doing this with Java on two computers, a desktop PC with Windows
2000 and a laptop with Windows XP.
Although I have not entirely given up on Java yet, there is no command
to get me what I want so the only way to do it would be through Java
Native Interface. That is I will have to do it in C or C++.
I would be most grateful if you could suggest anyway at all to get the
battery level in Java, C or C++ or maybe using any J2ME or JINI
libraries.
Thanks !
Maria