Alex Rivera | Logout

Retrieve performance counter value in a language-independent way

Asked 2011-04-07T13:28:01.410
16

Under Windows, performance counters have different names, depending on the operating system language. For example, on an English Windows version, there is the performance counter \Processor(_Total)\% Processor Time. The same counter is called \Prozessor(_Total)\Prozessorzeit (%) on a German Windows version.

Is there any way to retrieve the performance counter value in a language-independent way (using C++ or C#)? Or is there an alternative to get the processor load of the whole computer without performance counters?

Edit
Report

1 Answer

0

Have you tried using the Pdh helper functions and the PdhAddEnglishCounter function?

answered 2011-04-08T00:04:45.167

Your Answer