views:

87

answers:

1

Which Windows API (Windows Xp and Window 7) do I use to log my battery performance on netbook? I want to write an app which can graph the watt vs time. I always run a select few apps on the netbook. Is there a tool for this already?

+1  A: 

The Windows DDK tool PwrTest /BATTERY emits a log file including all the info you are looking for. From MSDN:

The PwrTest Battery scenario is designed to facilitate automated inspection of battery and power source information. PwrTest is capable of logging battery capacity, voltage, rate of drain and general state for up to two batteries on the system. Battery data is logged at a specified interval for a specified number of cycles.

I'm not sure if this tool works on XP, but it's easy to download the DDK and try the tool on XP.

Justin Grant
iceman