Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
5.3 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992-1999 Microsoft Corporation
  3. Module Name:
  4. ntprfctr.h
  5. Abstract:
  6. Contains symbolic definitions of the "Standard" Perfmon Counter Objects
  7. These are the integer and unicode string values used in the registry to
  8. locate and identify counter titles and help text.
  9. Author:
  10. Bob Watson (a-robw) 16 Nov 92
  11. Revision History:
  12. Bob Watson (bobw) 22 Oct 97 added job object & RSVP counters
  13. --*/
  14. #ifndef _NTPRFCTR_H_
  15. #define _NTPRFCTR_H_
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. //
  23. // These values correspond to the values assigned to these object titles
  24. // in the registry
  25. //
  26. #define NULL_OBJECT_TITLE_INDEX 0
  27. #define SYSTEM_OBJECT_TITLE_INDEX 2
  28. #define PROCESSOR_OBJECT_TITLE_INDEX 238
  29. #define MEMORY_OBJECT_TITLE_INDEX 4
  30. #define CACHE_OBJECT_TITLE_INDEX 86
  31. #define PHYSICAL_DISK_OBJECT_TITLE_INDEX 234
  32. #define LOGICAL_DISK_OBJECT_TITLE_INDEX 236
  33. #define PROCESS_OBJECT_TITLE_INDEX 230
  34. #define THREAD_OBJECT_TITLE_INDEX 232
  35. #define OBJECT_OBJECT_TITLE_INDEX 260
  36. #define REDIRECTOR_OBJECT_TITLE_INDEX 262
  37. #define SERVER_OBJECT_TITLE_INDEX 330
  38. #define SERVER_QUEUE_OBJECT_TITLE_INDEX 1300
  39. #define PAGEFILE_OBJECT_TITLE_INDEX 700
  40. #define BROWSER_OBJECT_TITLE_INDEX 52
  41. #define HEAP_OBJECT_TITLE_INDEX 1760
  42. //
  43. // The number of "standard" object types
  44. //
  45. #define NT_NUM_PERF_OBJECT_TYPES 15
  46. //
  47. // Costly Items
  48. //
  49. #define EXPROCESS_OBJECT_TITLE_INDEX 786
  50. #define IMAGE_OBJECT_TITLE_INDEX 740
  51. #define THREAD_DETAILS_OBJECT_TITLE_INDEX 816
  52. #define LONG_IMAGE_OBJECT_TITLE_INDEX 1408
  53. #define NT_NUM_COSTLY_OBJECT_TYPES 4
  54. #define EXTENSIBLE_OBJECT_INDEX 0xFFFFFFFF
  55. //
  56. // Microsoft provided extensible counters
  57. //
  58. // these have to match the titles in PERFCTRS.INI (they don't do it
  59. // by themselves, unfortunately!
  60. #define TCP_OBJECT_TITLE_INDEX 638
  61. #define UDP_OBJECT_TITLE_INDEX 658
  62. #define IP_OBJECT_TITLE_INDEX 546
  63. #define ICMP_OBJECT_TITLE_INDEX 582
  64. #define NET_OBJECT_TITLE_INDEX 510
  65. #define NBT_OBJECT_TITLE_INDEX 502
  66. #define NBF_OBJECT_TITLE_INDEX 492
  67. #define NBF_RESOURCE_OBJECT_TITLE_INDEX 494
  68. //
  69. // Microsoft extensible counters for other components that are included
  70. // in the Daytona system.
  71. //
  72. #define FTP_FIRST_COUNTER_INDEX 824
  73. #define FTP_FIRST_HELP_INDEX 825
  74. #define FTP_LAST_COUNTER_INDEX 856
  75. #define FTP_LAST_HELP_INDEX 857
  76. // as of NT5.0 the RAS counters have been moved to
  77. // extensible counters above the last base index (1847)
  78. #define RAS_FIRST_COUNTER_INDEX 870
  79. #define RAS_FIRST_HELP_INDEX 871
  80. #define RAS_LAST_COUNTER_INDEX 908
  81. #define RAS_LAST_HELP_INDEX 909
  82. #define WIN_FIRST_COUNTER_INDEX 920
  83. #define WIN_FIRST_HELP_INDEX 921
  84. #define WIN_LAST_COUNTER_INDEX 950
  85. #define WIN_LAST_HELP_INDEX 951
  86. #define SFM_FIRST_COUNTER_INDEX 1000
  87. #define SFM_FIRST_HELP_INDEX 1001
  88. #define SFM_LAST_COUNTER_INDEX 1034
  89. #define SFM_LAST_HELP_INDEX 1035
  90. #define ATK_FIRST_COUNTER_INDEX 1050
  91. #define ATK_FIRST_HELP_INDEX 1051
  92. #define ATK_LAST_COUNTER_INDEX 1102
  93. #define ATK_LAST_HELP_INDEX 1103
  94. #define BH_FIRST_COUNTER_INDEX 1110
  95. #define BH_FIRST_HELP_INDEX 1111
  96. #define BH_LAST_COUNTER_INDEX 1126
  97. #define BH_LAST_HELP_INDEX 1127
  98. #define TAPI_FIRST_COUNTER_INDEX 1150
  99. #define TAPI_FIRST_HELP_INDEX 1151
  100. #define TAPI_LAST_COUNTER_INDEX 1178
  101. #define TAPI_LAST_HELP_INDEX 1179
  102. // NetWare counters have different Object indexes depending
  103. // on whether the system is a Workstation or a Server.
  104. // The rest of the counter indexes are the same (from 1232 to 1247)
  105. #define NWCS_GATEWAY_COUNTER_INDEX 1228
  106. #define NWCS_GATEWAY_HELP_INDEX 1229
  107. #define NWCS_CLIENT_COUNTER_INDEX 1230
  108. #define NWCS_CLIENT_HELP_INDEX 1231
  109. #define NWCS_FIRST_COUNTER_INDEX 1230
  110. #define NWCS_FIRST_HELP_INDEX 1231
  111. #define NWCS_LAST_COUNTER_INDEX 1246
  112. #define NWCS_LAST_HELP_INDEX 1247
  113. // spooler performance counter indices
  114. #define LSPL_FIRST_COUNTER_INDEX 1450
  115. #define LSPL_FIRST_HELP_INDEX 1451
  116. #define LSPL_LAST_COUNTER_INDEX 1498
  117. #define LSPL_LAST_HELP_INDEX 1499
  118. // job object acct & performance counters
  119. #define JOB_FIRST_COUNTER_INDEX 1500
  120. #define JOB_FIRST_HELP_INDEX 1501
  121. #define JOB_OBJECT_TITLE_INDEX 1500
  122. #define JOB_DETAILS_OBJECT_TITLE_INDEX 1548
  123. #define JOB_LAST_COUNTER_INDEX 1548
  124. #define JOB_LAST_HELP_INDEX 1549
  125. // RSVP service counters have been moved to
  126. // the extensible index space
  127. // next available index: 1810
  128. // last available index: 1847
  129. #ifdef __cplusplus
  130. }
  131. #endif
  132. #endif //_NTPRFCTR_H_