Dealing with Localized Performance Monitor Counters Part 2/2
In the last post we talked about using the PdhAddEnglishCounter function to add English-localized performance counters to a query set, but were stuck on how enumerate through all of the counters on a specific object. I disassembled PDH.dll and found that PdhAddEnglishCounter uses an internal function, PdhTranslateLocaleCounterA, to do the needful. It would be nice if that function were public and documented. :| I kept digging and traced this function down several layers deep, and found it's getting data from the registry. (That's a clue.) Digging deeper into that I found some references online to a very old (2006) Windows 2003 KB article, Q287159 Using PDH APIs Correctly in a Localized Language. This content is no longer available from Microsoft, and inconveniently the internet archive is currently offline due to a DDOS attack. I was able to find the article here: Microsoft KB Archive/287159 - BetaArchive Wiki . That KB/Q gives the keys for ...