I was curious how my laptop battery charges and discharges and whether it loses capacity over time so when I learned about PowrProf.dll for reading that information I began work on writing a simple program for recording that information at regular intervals. This led to the Battery Monitor Service (BMS) which is a Windows service that queries PowrProf.dll once a minute and outputs into a simple log file. The download includes all the source for the BMS. I used VS2003 to compile it. To generate the graph I used Gnuplot.
Discharge-recharge tests (1200x600px, 10KB)
Log file for discharge-recharge tests
Gnuplot script for discharge-recharge tests
Check my contact page for ways to contact me.