Performance counter index

This is a discussion on Performance counter index within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, How to get the performance counter index and name relationship? Is there a table? (like integer 180 for ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    Performance counter index

    Hello everyone,


    How to get the performance counter index and name relationship? Is there a table?

    (like integer 180 for working set counter)

    I can not find from MSDN,

    http://msdn2.microsoft.com/en-us/library/aa372648.aspx


    thanks in advance,
    George

  2. #2
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    I guess you can call it a table. It's actually a registry key with a type of REG_MULTI_SZ, which IMHO can be construed as a table.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\LangId
    Where LangId is 009 for U.S. English. This is the key that the function references.

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Cool, BobS0327!


    It works for Windows Server 2003 machine! But it does not work my another new Windows Vista machine. The error message when open Perflib folder is,

    --------------------
    can not open Perflib, access denied, error access private key for unknown reason.
    --------------------

    Any ideas?

    Quote Originally Posted by BobS0327 View Post
    I guess you can call it a table. It's actually a registry key with a type of REG_MULTI_SZ, which IMHO can be construed as a table.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\LangId
    Where LangId is 009 for U.S. English. This is the key that the function references.

    regards,
    George

  4. #4
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,651

  5. #5
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Thanks Codeplug,


    I have followed the information in this blog solved this issue. Looks cool!


    regards,
    George

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Promblem with code
    By watchdogger in forum C Programming
    Replies: 18
    Last Post: 01-31-2009, 05:36 PM
  2. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 04:48 PM
  3. Bug of performance counter API or perfmon tool
    By George2 in forum Tech Board
    Replies: 2
    Last Post: 01-25-2008, 02:49 AM
  4. Function to check memory left from malloc and free?
    By Lechx in forum C Programming
    Replies: 4
    Last Post: 04-24-2006, 05:45 AM
  5. file index update error
    By daluu in forum C Programming
    Replies: 1
    Last Post: 04-28-2003, 02:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21