Description: Ever since I saw Performance application on Windows 2000, I wondered if there is a way/Windows API to programmatically determine CPU usage for each of the individual CPUs in a multi-processor machine. Though there are many articles for getting the CPU usage, none helped when it came to multi-processor machines.
After some digging in MSDN, I could find WMI (Windows Management and Instrumentation) has a few performance counter classes. I chose to use the Win32_PerfRawData_PerfOS_Processor class in this case as it is supported on Windows 2000 onwards.
File list (Check if you may need any files):
CheckMultiprocessor
...................\Check
...................\.....\Check.cpp
...................\.....\Check.dsp
...................\.....\Check.dsw
...................\.....\ReadMe.txt
...................\.....\Release
...................\.....\.......\Check.exe
...................\.....\StdAfx.cpp
...................\.....\StdAfx.h