Leaked source code of windows server 2003
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.

173 lines
5.6 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 TCP6_OBJECT_TITLE_INDEX 1530
  62. #define UDP_OBJECT_TITLE_INDEX 658
  63. #define UDP6_OBJECT_TITLE_INDEX 1532
  64. #define IP_OBJECT_TITLE_INDEX 546
  65. #define IP6_OBJECT_TITLE_INDEX 548
  66. #define ICMP_OBJECT_TITLE_INDEX 582
  67. #define ICMP6_OBJECT_TITLE_INDEX 1534
  68. #define NET_OBJECT_TITLE_INDEX 510
  69. #define NBT_OBJECT_TITLE_INDEX 502
  70. #define NBF_OBJECT_TITLE_INDEX 492
  71. #define NBF_RESOURCE_OBJECT_TITLE_INDEX 494
  72. //
  73. // Microsoft extensible counters for other components that are included
  74. // in the Daytona system.
  75. //
  76. #define FTP_FIRST_COUNTER_INDEX 824
  77. #define FTP_FIRST_HELP_INDEX 825
  78. #define FTP_LAST_COUNTER_INDEX 856
  79. #define FTP_LAST_HELP_INDEX 857
  80. // as of NT5.0 the RAS counters have been moved to
  81. // extensible counters above the last base index (1847)
  82. #define RAS_FIRST_COUNTER_INDEX 870
  83. #define RAS_FIRST_HELP_INDEX 871
  84. #define RAS_LAST_COUNTER_INDEX 908
  85. #define RAS_LAST_HELP_INDEX 909
  86. #define WIN_FIRST_COUNTER_INDEX 920
  87. #define WIN_FIRST_HELP_INDEX 921
  88. #define WIN_LAST_COUNTER_INDEX 950
  89. #define WIN_LAST_HELP_INDEX 951
  90. #define SFM_FIRST_COUNTER_INDEX 1000
  91. #define SFM_FIRST_HELP_INDEX 1001
  92. #define SFM_LAST_COUNTER_INDEX 1034
  93. #define SFM_LAST_HELP_INDEX 1035
  94. #define ATK_FIRST_COUNTER_INDEX 1050
  95. #define ATK_FIRST_HELP_INDEX 1051
  96. #define ATK_LAST_COUNTER_INDEX 1102
  97. #define ATK_LAST_HELP_INDEX 1103
  98. #define BH_FIRST_COUNTER_INDEX 1110
  99. #define BH_FIRST_HELP_INDEX 1111
  100. #define BH_LAST_COUNTER_INDEX 1126
  101. #define BH_LAST_HELP_INDEX 1127
  102. #define TAPI_FIRST_COUNTER_INDEX 1150
  103. #define TAPI_FIRST_HELP_INDEX 1151
  104. #define TAPI_LAST_COUNTER_INDEX 1178
  105. #define TAPI_LAST_HELP_INDEX 1179
  106. // NetWare counters have different Object indexes depending
  107. // on whether the system is a Workstation or a Server.
  108. // The rest of the counter indexes are the same (from 1232 to 1247)
  109. #define NWCS_GATEWAY_COUNTER_INDEX 1228
  110. #define NWCS_GATEWAY_HELP_INDEX 1229
  111. #define NWCS_CLIENT_COUNTER_INDEX 1230
  112. #define NWCS_CLIENT_HELP_INDEX 1231
  113. #define NWCS_FIRST_COUNTER_INDEX 1230
  114. #define NWCS_FIRST_HELP_INDEX 1231
  115. #define NWCS_LAST_COUNTER_INDEX 1246
  116. #define NWCS_LAST_HELP_INDEX 1247
  117. // spooler performance counter indices
  118. #define LSPL_FIRST_COUNTER_INDEX 1450
  119. #define LSPL_FIRST_HELP_INDEX 1451
  120. #define LSPL_LAST_COUNTER_INDEX 1498
  121. #define LSPL_LAST_HELP_INDEX 1499
  122. // job object acct & performance counters
  123. #define JOB_FIRST_COUNTER_INDEX 1500
  124. #define JOB_FIRST_HELP_INDEX 1501
  125. #define JOB_OBJECT_TITLE_INDEX 1500
  126. #define JOB_DETAILS_OBJECT_TITLE_INDEX 1548
  127. #define JOB_LAST_COUNTER_INDEX 1548
  128. #define JOB_LAST_HELP_INDEX 1549
  129. // RSVP service counters have been moved to
  130. // the extensible index space
  131. // next available index: 1810
  132. // last available index: 1847
  133. #ifdef __cplusplus
  134. }
  135. #endif
  136. #endif //_NTPRFCTR_H_