469,628 Members | 1,093 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

Performance counters problem on non-english Windows

Hi,

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,
Chris
Nov 16 '05 #1
0 1803

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Marc Melancon | last post: by
reply views Thread by Brian Newtz | last post: by
7 posts views Thread by James | last post: by
reply views Thread by newscorrespondent | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.