Originally posted by: Felix
mmm let me see ... the code is ok but
the PDH api works in the OS lang, the counter and object names are taken from the perflib
SOFTWARE\\Microsoft\\WindowsNT\\CurrentVersion\\Perflib\\langId
wowReply
Originally posted by: Karsten Noa
Thanx for this Project.
I have a suggestion for you.
Use PDHEnumObjects and PDHEnumObjectItems to get the real Path of any counter. So you can implement a programm which is working fine under every OS.
CU Karsten.
Originally posted by: Dev'ltos
Hi,
thanks for your good sample but a problem can be found with this method ! If your program runs on French Win2000 OS, for instance, it doesn't work because PDH seems to search counters not in the 009 key but in the localized key !!!
How to do so that the program uses only the 009 key... ?
Reply