Can anyone tell me how to get the CPU Usage as a percentage on Windows 2000?
Printable View
Can anyone tell me how to get the CPU Usage as a percentage on Windows 2000?
I found a solution that works for Win9x. Perhaps it will work on 2k, as well.
I followed along the article, http://support.microsoft.com/support.../q174/6/31.asp and found it gives the solution for acquiring the current CPU load--practically writes the application for you.
I created a console-app project, created a thread that calls the given functions, and *voila!*. You can get the project and source at http://home.dn.net/~mcmanus/CPU_Performance.zip
John McManus
System Engineer
SAIC