It doesn't do everything you want, but it's a start.
In reply to Re: Finding CPU stats on Win32? by Joost in thread Finding CPU stats on Win32? by guice