Using performance counters with various user interface languages

I would like to read several performance counters in my C # application, for example, "Processor \% Idle Time", but this only works on English systems. Since performance counters must be initialized using the category of counters and names, how can I make my code run under different user interface languages?

+5
source share
1 answer

After a long search, I found this article in MS KB, which explains how to get localized counter names using hardcoded index values: http://support.microsoft.com/kb/287159

Once you get a strict index value from the registry, just pass it to the PdhLookupPerfNameByIndex method and it will return the name of the localized counter.

+2
source

All Articles