I'm trying to write a visual basic 6 DLL (ActiveX) that can read the battery level on my laptop and return it (specifically, I'm using it as a COM object in mIRC).

How might I get the level of my battery (Maximum charge and current charge)? I've looked through google, but I'm afraid I haven't been able to find anything helpful.