By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 1,905 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

Performance counters problem on non-english Windows

P: n/a

I need to create a dialog like the 'Add Counters' dialog box in
perfmon. I'm using the System.Diagnostics namespace class in .NET and I've
managed to do it.

The problem arises when I'm using such dialog box on a non-English Windows
OS (I'm currently testing on Spanish WinXP Professional).

I'm noticing that on non-English Windows OS there are some categories whose
counters are being displayed in English and not in the non-English language.
These particular categories are those whose category name in English is
exactly equal to that of the non-English OS language.
For e.g: if "Processor" category is translated "Procesador" in Spanish then
counters are returned in Spanish
but if "ASP.NET" category remains "ASP.NET" in Spanish, then the
counters are returned in English.
I've searched the registry
(HKLM\Software\Microsoft\WinNT\XurrentVersion\Perf Lib) and found that on the
non-English Windows these counters can be found in the non-english language.
Therefore the problem lies in the .NET functions that I'm using to retrieve
the counters for a particular performance category.

I'm using PerformanceCounterCategory.GetInstances() and
PerformanceCounterCategory.GetCounters() to obtain the instances and
counters related to a performance category. I've also tried using
PerformanceCounterCategory.ReadCategory() (with the
InstanceDataCollectionCollection) but remained the same problem.

Anyone can help?

Thanks in advance,
Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.