lxn / win

A Windows API wrapper package for the Go Programming Language
Other
1.19k stars 313 forks source link

PdhLookupPerfNameByIndex should be added to pdh.go #13

Open douglaswth opened 9 years ago

douglaswth commented 9 years ago

According to Using PDH APIs correctly in a localized language, in order to support counter names in different localization languages, PdhLookupPerfNameByIndex needs to be used to look up the localized names for the counter paths. Unfortunately pdh.go doesn't have that yet.

If I get to it, I can probably work on it myself, but I'm creating the issue now if somebody else wants to work on it as well.

douglaswth commented 9 years ago

Hmm, there is PdhAddEnglishCounter in pdh.go, that might be fine for me if I don't need to support Windows Server 2003.