Getting Battery Information

I am working on a project to get battery information in windows, i found this page but i a unfamiliar with the windows API and i couldn't figure out how to use it. If someone could give me some advice or write a simple program that prints out the names of all the computers battery devices along with the type of battery it is i would be extremely grateful.
Topic archived. No new replies allowed.