2,782 questions
One of the ways is with PDH
If I test the old MS KB287158 sample,
by replacing PdhAddCounter by PdhAddEnglishCounter (my OS is french) (+ changing strings to Unicode),
I get about the same result as Task Manager