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.

187 lines
7.6 KiB

  1. //#---------------------------------------------------------------
  2. // File: smtpctrs.h
  3. //
  4. // Synopsis: Offset definitions for the MSN Server's
  5. // counter objects & counters.
  6. //
  7. // These offsets *must* start at 0 and be
  8. // multiples of 2. In the MsnOpenPerformanceData
  9. // procecedure, they will be added to the MSN
  10. // Server's "First Counter" and "First Help"
  11. // values in order to determine the absolute
  12. // location of the counter & object names
  13. // and corresponding help text in the registry.
  14. //
  15. // This file is used by the MSNCTRS.DLL DLL
  16. // code as well as the MSNCTRS.INI definition
  17. // file. MSNCTRS.INI is parsed by the LODCTR
  18. // utility to load the object & counter names
  19. // into the registry.
  20. //
  21. // Copyright (C) 1995 Microsoft Corporation
  22. // All rights reserved.
  23. //
  24. // Authors: toddch - based on msn sources by rkamicar, keithmo
  25. //----------------------------------------------------------------
  26. #ifndef _SMTPCTRS_H_
  27. #define _SMTPCTRS_H_
  28. //
  29. // disabled tracing by default for the perfmon client code
  30. //
  31. #ifndef NOTRACE
  32. #define NOTRACE
  33. #endif
  34. //
  35. // The SMTP Server counter object.
  36. //
  37. #define SMTP_COUNTER_OBJECT 0
  38. //
  39. // The individual counters.
  40. //
  41. #define SMTP_BYTES_SENT_TTL_COUNTER 2
  42. #define SMTP_BYTES_SENT_PER_SEC_COUNTER 4
  43. #define SMTP_BYTES_RCVD_TTL_COUNTER 6
  44. #define SMTP_BYTES_RCVD_PER_SEC_COUNTER 8
  45. #define SMTP_BYTES_TTL_COUNTER 10
  46. #define SMTP_BYTES_TTL_PER_SEC_COUNTER 12
  47. #define SMTP_BYTES_SENT_MSG_COUNTER 14
  48. #define SMTP_BYTES_SENT_MSG_PER_SEC_COUNTER 16
  49. #define SMTP_BYTES_RCVD_MSG_COUNTER 18
  50. #define SMTP_BYTES_RCVD_MSG_PER_SEC_COUNTER 20
  51. #define SMTP_BYTES_MSG_COUNTER 22
  52. #define SMTP_BYTES_MSG_PER_SEC_COUNTER 24
  53. #define SMTP_MSG_RCVD_TTL_COUNTER 26
  54. #define SMTP_MSG_RCVD_PER_SEC_COUNTER 28
  55. #define SMTP_AVG_RCPTS_PER_MSG_RCVD_COUNTER 30
  56. #define SMTP_BASE_AVG_RCPTS_PER_MSG_RCVD_COUNTER 32
  57. #define SMTP_PCT_LCL_RCPTS_PER_MSG_RCVD_COUNTER 34
  58. #define SMTP_BASE_PCT_LCL_RCPTS_PER_MSG_RCVD_COUNTER 36
  59. #define SMTP_PCT_RMT_RCPTS_PER_MSG_RCVD_COUNTER 38
  60. #define SMTP_BASE_PCT_RMT_RCPTS_PER_MSG_RCVD_COUNTER 40
  61. #define SMTP_MSG_RCVD_REFUSED_SIZE_COUNTER 42
  62. #define SMTP_MSG_RCVD_REFUSED_CADDR_COUNTER 44
  63. #define SMTP_MSG_RCVD_REFUSED_MAIL_COUNTER 46
  64. #define SMTP_MSG_DLVR_TTL_COUNTER 48
  65. #define SMTP_MSG_DLVR_PER_SEC_COUNTER 50
  66. #define SMTP_MSG_DLVR_RETRIES_TTL_COUNTER 52
  67. #define SMTP_AVG_RETRIES_PER_MSG_DLVR_COUNTER 54
  68. #define SMTP_BASE_AVG_RETRIES_PER_MSG_DLVR_COUNTER 56
  69. #define SMTP_MSG_FWD_TTL_COUNTER 58
  70. #define SMTP_MSG_FWD_PER_SEC_COUNTER 60
  71. #define SMTP_NDR_GENERATED_COUNTER 62
  72. #define SMTP_LOCALQ_LENGTH_COUNTER 64
  73. #define SMTP_RETRYQ_LENGTH_COUNTER 66
  74. #define SMTP_NUM_MAILFILE_HANDLES_COUNTER 68
  75. #define SMTP_NUM_QUEUEFILE_HANDLES_COUNTER 70
  76. #define SMTP_CATQ_LENGTH_COUNTER 72
  77. #define SMTP_MSG_SENT_TTL_COUNTER 74
  78. #define SMTP_MSG_SENT_PER_SEC_COUNTER 76
  79. #define SMTP_MSG_SEND_RETRIES_TTL_COUNTER 78
  80. #define SMTP_AVG_RETRIES_PER_MSG_SEND_COUNTER 80
  81. #define SMTP_BASE_AVG_RETRIES_PER_MSG_SEND_COUNTER 82
  82. #define SMTP_AVG_RCPTS_PER_MSG_SENT_COUNTER 84
  83. #define SMTP_BASE_AVG_RCPTS_PER_MSG_SENT_COUNTER 86
  84. #define SMTP_REMOTEQ_LENGTH_COUNTER 88
  85. #define SMTP_DNS_QUERIES_TTL_COUNTER 90
  86. #define SMTP_DNS_QUERIES_PER_SEC_COUNTER 92
  87. #define SMTP_REMOTE_RETRY_QUEUE_LENGTH_COUNTER 94
  88. #define SMTP_PICKUP_QUEUE_LENGTH_COUNTER 96
  89. #define SMTP_CONN_IN_TTL_COUNTER 98
  90. #define SMTP_CONN_IN_CURR_COUNTER 100
  91. #define SMTP_CONN_OUT_TTL_COUNTER 102
  92. #define SMTP_CONN_OUT_CURR_COUNTER 104
  93. #define SMTP_CONN_OUT_REFUSED_COUNTER 106
  94. #define SMTP_ERR_TTL_COUNTER 108
  95. #define SMTP_ERR_PER_SEC_COUNTER 110
  96. #define SMTP_DIR_DROPS_TTL_COUNTER 112
  97. #define SMTP_DIR_DROPS_PER_SEC_COUNTER 114
  98. #define SMTP_RT_LOOKUPS_TTL_COUNTER 116
  99. #define SMTP_RT_LOOKUPS_PER_SEC_COUNTER 118
  100. #define SMTP_ETRN_MSGS_TTL_COUNTER 120
  101. #define SMTP_ETRN_MSGS_PER_SEC_COUNTER 122
  102. #define SMTP_MSG_BADMAIL_NO_RECIPIENTS_COUNTER 124
  103. #define SMTP_MSG_BADMAIL_HOP_COUNT_EXCEEDED_COUNTER 126
  104. #define SMTP_MSG_BADMAIL_FAILURE_GENERAL_COUNTER 128
  105. #define SMTP_MSG_BADMAIL_BAD_PICKUP_FILE_COUNTER 130
  106. #define SMTP_MSG_BADMAIL_EVENT_COUNTER 132
  107. #define SMTP_MSG_BADMAIL_NDR_OF_DSN_COUNTER 134
  108. #define SMTP_MSG_PENDING_ROUTING_COUNTER 136
  109. #define SMTP_MSG_PENDING_UNREACHABLE_LINK_COUNTER 138
  110. #define SMTP_SUBMITTED_MESSAGES_COUNTER 140
  111. #define SMTP_DSN_FAILURES_COUNTER 142
  112. #define SMTP_MSG_IN_LOCAL_DELIVERY_COUNTER 144
  113. #define SMTP_CAT_SUBMISSIONS_COUNTER 146
  114. #define SMTP_CAT_SUBMISSIONS_PER_SEC_COUNTER 148
  115. #define SMTP_CAT_COMPLETIONS_COUNTER 150
  116. #define SMTP_CAT_COMPLETIONS_PER_SEC_COUNTER 152
  117. #define SMTP_CAT_CURRENT_CATEGORIZATIONS_COUNTER 154
  118. #define SMTP_CAT_SUCCEEDED_CATEGORIZATIONS_COUNTER 156
  119. #define SMTP_CAT_HARD_FAILURES_COUNTER 158
  120. #define SMTP_CAT_RETRY_FAILURES_COUNTER 160
  121. #define SMTP_CAT_RETRY_OUTOFMEMORY_COUNTER 162
  122. #define SMTP_CAT_RETRY_DSLOGON_COUNTER 164
  123. #define SMTP_CAT_RETRY_DSCONNECTION_COUNTER 166
  124. #define SMTP_CAT_RETRY_GENERIC_COUNTER 168
  125. #define SMTP_CAT_MSGS_OUT_COUNTER 170
  126. #define SMTP_CAT_MSGS_CREATED_COUNTER 172
  127. #define SMTP_CAT_MSGS_ABORTED_COUNTER 174
  128. #define SMTP_CAT_RECIPS_PRECAT_COUNTER 176
  129. #define SMTP_CAT_RECIPS_POSTCAT_COUNTER 178
  130. #define SMTP_CAT_RECIPS_NDRD_COUNTER 180
  131. #define SMTP_CAT_RECIPS_UNRESOLVED_COUNTER 182
  132. #define SMTP_CAT_RECIPS_AMBIGUOUS_COUNTER 184
  133. #define SMTP_CAT_RECIPS_ILLEGAL_COUNTER 186
  134. #define SMTP_CAT_RECIPS_LOOP_COUNTER 188
  135. #define SMTP_CAT_RECIPS_GENERICFAILURE_COUNTER 190
  136. #define SMTP_CAT_RECIPS_INMEMORY_COUNTER 192
  137. #define SMTP_CAT_SENDERS_UNRESOLVED_COUNTER 194
  138. #define SMTP_CAT_SENDERS_AMBIGUOUS_COUNTER 196
  139. #define SMTP_CAT_ADDRESS_LOOKUPS_COUNTER 198
  140. #define SMTP_CAT_ADDRESS_LOOKUPS_PER_SEC_COUNTER 200
  141. #define SMTP_CAT_ADDRESS_LOOKUP_COMPLETIONS_COUNTER 202
  142. #define SMTP_CAT_ADDRESS_LOOKUP_COMPLETIONS_PER_SEC_COUNTER 204
  143. #define SMTP_CAT_ADDRESS_LOOKUPS_NOT_FOUND_COUNTER 206
  144. #define SMTP_CAT_MAILMSG_DUPLICATE_COLLISIONS_COUNTER 208
  145. #define SMTP_CAT_LDAP_CONNECTIONS_COUNTER 210
  146. #define SMTP_CAT_LDAP_CONNECTION_FAILURES_COUNTER 212
  147. #define SMTP_CAT_LDAP_OPEN_CONNECTIONS_COUNTER 214
  148. #define SMTP_CAT_LDAP_BINDS_COUNTER 216
  149. #define SMTP_CAT_LDAP_BIND_FAILURES_COUNTER 218
  150. #define SMTP_CAT_LDAP_SEARCHES_COUNTER 220
  151. #define SMTP_CAT_LDAP_SEARCHES_PER_SEC_COUNTER 222
  152. #define SMTP_CAT_LDAP_PAGED_SEARCHES_COUNTER 224
  153. #define SMTP_CAT_LDAP_SEARCH_FAILURES_COUNTER 226
  154. #define SMTP_CAT_LDAP_PAGED_SEARCH_FAILURES_COUNTER 228
  155. #define SMTP_CAT_LDAP_SEARCHES_COMPLETED_COUNTER 230
  156. #define SMTP_CAT_LDAP_SEARCHES_COMPLETED_PER_SEC_COUNTER 232
  157. #define SMTP_CAT_LDAP_PAGED_SEARCHES_COMPLETED_COUNTER 234
  158. #define SMTP_CAT_LDAP_SEARCHES_COMPLETED_FAILURE_COUNTER 236
  159. #define SMTP_CAT_LDAP_PAGED_SEARCHES_COMPLETED_FAILURE_COUNTER 238
  160. #define SMTP_CAT_LDAP_GENERAL_COMPLETION_FAILURES_COUNTER 240
  161. #define SMTP_CAT_LDAP_ABANDONED_SEARCHES_COUNTER 242
  162. #define SMTP_CAT_LDAP_PENDING_SEARCHES_COUNTER 244
  163. // SERVICE_START
  164. // CONNECTION_START
  165. // LAST_CLEAR
  166. #endif // _SMTPCTRS_H_