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.

261 lines
8.8 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. nntpdata.h
  7. Extensible object definitions for the NNTP Server's counter
  8. objects & counters.
  9. FILE HISTORY:
  10. KeithMo 07-Jun-1993 Created.
  11. */
  12. #ifndef _NNTPDATA_H_
  13. #define _NNTPDATA_H_
  14. #pragma pack(8)
  15. //
  16. // The counter structure returned.
  17. //
  18. typedef struct _NNTP_DATA_DEFINITION_OBJECT1
  19. {
  20. PERF_OBJECT_TYPE NntpObjectType;
  21. PERF_COUNTER_DEFINITION NntpBytesSent;
  22. PERF_COUNTER_DEFINITION NntpBytesReceived;
  23. PERF_COUNTER_DEFINITION NntpBytesTotal;
  24. PERF_COUNTER_DEFINITION NntpTotalConnections;
  25. PERF_COUNTER_DEFINITION NntpTotalSSLConnections;
  26. PERF_COUNTER_DEFINITION NntpCurrentConnections;
  27. PERF_COUNTER_DEFINITION NntpMaxConnections;
  28. PERF_COUNTER_DEFINITION NntpCurrentAnonymous;
  29. PERF_COUNTER_DEFINITION NntpCurrentNonAnonymous;
  30. PERF_COUNTER_DEFINITION NntpTotalAnonymous;
  31. PERF_COUNTER_DEFINITION NntpTotalNonAnonymous;
  32. PERF_COUNTER_DEFINITION NntpMaxAnonymous;
  33. PERF_COUNTER_DEFINITION NntpMaxNonAnonymous;
  34. PERF_COUNTER_DEFINITION NntpTotalOutboundConnects;
  35. PERF_COUNTER_DEFINITION NntpOutboundConnectsFailed;
  36. PERF_COUNTER_DEFINITION NntpCurrentOutboundConnects;
  37. PERF_COUNTER_DEFINITION NntpOutboundLogonFailed;
  38. PERF_COUNTER_DEFINITION NntpTotalPullFeeds;
  39. PERF_COUNTER_DEFINITION NntpTotalPushFeeds;
  40. PERF_COUNTER_DEFINITION NntpTotalPassiveFeeds;
  41. PERF_COUNTER_DEFINITION NntpArticlesSent;
  42. PERF_COUNTER_DEFINITION NntpArticlesReceived;
  43. PERF_COUNTER_DEFINITION NntpArticlesTotal;
  44. PERF_COUNTER_DEFINITION NntpArticlesPosted;
  45. PERF_COUNTER_DEFINITION NntpArticleMapEntries;
  46. PERF_COUNTER_DEFINITION NntpHistoryMapEntries;
  47. PERF_COUNTER_DEFINITION NntpXoverEntries;
  48. PERF_COUNTER_DEFINITION NntpControlMessagesIn;
  49. PERF_COUNTER_DEFINITION NntpControlMessagesFailed;
  50. PERF_COUNTER_DEFINITION NntpModeratedPostingsSent;
  51. PERF_COUNTER_DEFINITION NntpModeratedPostingsFailed;
  52. PERF_COUNTER_DEFINITION NntpSessionsFlowControlled;
  53. PERF_COUNTER_DEFINITION NntpArticlesExpired;
  54. PERF_COUNTER_DEFINITION NntpArticlesSentPerSec;
  55. PERF_COUNTER_DEFINITION NntpArticlesReceivedPerSec;
  56. PERF_COUNTER_DEFINITION NntpArticlesPostedPerSec;
  57. PERF_COUNTER_DEFINITION NntpArticleMapEntriesPerSec;
  58. PERF_COUNTER_DEFINITION NntpHistoryMapEntriesPerSec;
  59. PERF_COUNTER_DEFINITION NntpXoverEntriesPerSec;
  60. PERF_COUNTER_DEFINITION NntpArticlesExpiredPerSec;
  61. } NNTP_DATA_DEFINITION_OBJECT1;
  62. typedef struct _NNTP_DATA_DEFINITION_OBJECT2
  63. {
  64. PERF_OBJECT_TYPE NntpObjectType;
  65. PERF_COUNTER_DEFINITION NntpArticleCmds;
  66. PERF_COUNTER_DEFINITION NntpArticleCmdsPerSec;
  67. PERF_COUNTER_DEFINITION NntpGroupCmds;
  68. PERF_COUNTER_DEFINITION NntpGroupCmdsPerSec;
  69. PERF_COUNTER_DEFINITION NntpHelpCmds;
  70. PERF_COUNTER_DEFINITION NntpHelpCmdsPerSec;
  71. PERF_COUNTER_DEFINITION NntpIHaveCmds;
  72. PERF_COUNTER_DEFINITION NntpIHaveCmdsPerSec;
  73. PERF_COUNTER_DEFINITION NntpLastCmds;
  74. PERF_COUNTER_DEFINITION NntpLastCmdsPerSec;
  75. PERF_COUNTER_DEFINITION NntpListCmds;
  76. PERF_COUNTER_DEFINITION NntpListCmdsPerSec;
  77. PERF_COUNTER_DEFINITION NntpNewgroupsCmds;
  78. PERF_COUNTER_DEFINITION NntpNewgroupsCmdsPerSec;
  79. PERF_COUNTER_DEFINITION NntpNewnewsCmds;
  80. PERF_COUNTER_DEFINITION NntpNewnewsCmdsPerSec;
  81. PERF_COUNTER_DEFINITION NntpNextCmds;
  82. PERF_COUNTER_DEFINITION NntpNextCmdsPerSec;
  83. PERF_COUNTER_DEFINITION NntpPostCmds;
  84. PERF_COUNTER_DEFINITION NntpPostCmdsPerSec;
  85. PERF_COUNTER_DEFINITION NntpQuitCmds;
  86. PERF_COUNTER_DEFINITION NntpQuitCmdsPerSec;
  87. PERF_COUNTER_DEFINITION NntpStatCmds;
  88. PERF_COUNTER_DEFINITION NntpStatCmdsPerSec;
  89. PERF_COUNTER_DEFINITION NntpLogonAttempts;
  90. PERF_COUNTER_DEFINITION NntpLogonFailures;
  91. PERF_COUNTER_DEFINITION NntpLogonAttemptsPerSec;
  92. PERF_COUNTER_DEFINITION NntpLogonFailuresPerSec;
  93. PERF_COUNTER_DEFINITION NntpCheckCmds;
  94. PERF_COUNTER_DEFINITION NntpCheckCmdsPerSec;
  95. PERF_COUNTER_DEFINITION NntpTakethisCmds;
  96. PERF_COUNTER_DEFINITION NntpTakethisCmdsPerSec;
  97. PERF_COUNTER_DEFINITION NntpModeCmds;
  98. PERF_COUNTER_DEFINITION NntpModeCmdsPerSec;
  99. PERF_COUNTER_DEFINITION NntpSearchCmds;
  100. PERF_COUNTER_DEFINITION NntpSearchCmdsPerSec;
  101. PERF_COUNTER_DEFINITION NntpXHdrCmds;
  102. PERF_COUNTER_DEFINITION NntpXHdrCmdsPerSec;
  103. PERF_COUNTER_DEFINITION NntpXOverCmds;
  104. PERF_COUNTER_DEFINITION NntpXOverCmdsPerSec;
  105. PERF_COUNTER_DEFINITION NntpXPatCmds;
  106. PERF_COUNTER_DEFINITION NntpXPatCmdsPerSec;
  107. PERF_COUNTER_DEFINITION NntpXReplicCmds;
  108. PERF_COUNTER_DEFINITION NntpXReplicCmdsPerSec;
  109. } NNTP_DATA_DEFINITION_OBJECT2;
  110. typedef struct _NNTP_COUNTER_BLOCK1 {
  111. PERF_COUNTER_BLOCK PerfCounterBlock;
  112. LONGLONG BytesSent;
  113. LONGLONG BytesReceived;
  114. LONGLONG BytesTotal;
  115. DWORD TotalConnections;
  116. DWORD TotalSSLConnections;
  117. DWORD CurrentConnections;
  118. DWORD MaxConnections;
  119. DWORD CurrentAnonymous;
  120. DWORD CurrentNonAnonymous;
  121. DWORD TotalAnonymous;
  122. DWORD TotalNonAnonymous;
  123. DWORD MaxAnonymous;
  124. DWORD MaxNonAnonymous;
  125. DWORD TotalOutboundConnects;
  126. DWORD OutboundConnectsFailed;
  127. DWORD CurrentOutboundConnects;
  128. DWORD OutboundLogonFailed;
  129. DWORD TotalPullFeeds;
  130. DWORD TotalPushFeeds;
  131. DWORD TotalPassiveFeeds;
  132. DWORD ArticlesSent;
  133. DWORD ArticlesReceived;
  134. DWORD ArticlesTotal;
  135. DWORD ArticlesPosted;
  136. DWORD ArticleMapEntries;
  137. DWORD HistoryMapEntries;
  138. DWORD XoverEntries;
  139. DWORD ControlMessagesIn;
  140. DWORD ControlMessagesFailed;
  141. DWORD ModeratedPostingsSent;
  142. DWORD ModeratedPostingsFailed;
  143. DWORD SessionsFlowControlled;
  144. DWORD ArticlesExpired;
  145. DWORD ArticlesSentPerSec;
  146. DWORD ArticlesReceivedPerSec;
  147. DWORD ArticlesPostedPerSec;
  148. DWORD ArticleMapEntriesPerSec;
  149. DWORD HistoryMapEntriesPerSec;
  150. DWORD XoverEntriesPerSec;
  151. DWORD ArticlesExpiredPerSec;
  152. } NNTP_COUNTER_BLOCK1, * PNNTP_COUNTER_BLOCK1;
  153. typedef struct _NNTP_COUNTER_BLOCK2 {
  154. PERF_COUNTER_BLOCK PerfCounterBlock;
  155. DWORD ArticleCmds;
  156. DWORD ArticleCmdsPerSec;
  157. DWORD GroupCmds;
  158. DWORD GroupCmdsPerSec;
  159. DWORD HelpCmds;
  160. DWORD HelpCmdsPerSec;
  161. DWORD IHaveCmds;
  162. DWORD IHaveCmdsPerSec;
  163. DWORD LastCmds;
  164. DWORD LastCmdsPerSec;
  165. DWORD ListCmds;
  166. DWORD ListCmdsPerSec;
  167. DWORD NewgroupsCmds;
  168. DWORD NewgroupsCmdsPerSec;
  169. DWORD NewnewsCmds;
  170. DWORD NewnewsCmdsPerSec;
  171. DWORD NextCmds;
  172. DWORD NextCmdsPerSec;
  173. DWORD PostCmds;
  174. DWORD PostCmdsPerSec;
  175. DWORD QuitCmds;
  176. DWORD QuitCmdsPerSec;
  177. DWORD StatCmds;
  178. DWORD StatCmdsPerSec;
  179. DWORD LogonAttempts;
  180. DWORD LogonFailures;
  181. DWORD LogonAttemptsPerSec;
  182. DWORD LogonFailuresPerSec;
  183. DWORD CheckCmds;
  184. DWORD CheckCmdsPerSec;
  185. DWORD TakethisCmds;
  186. DWORD TakethisCmdsPerSec;
  187. DWORD ModeCmds;
  188. DWORD ModeCmdsPerSec;
  189. DWORD SearchCmds;
  190. DWORD SearchCmdsPerSec;
  191. DWORD XHdrCmds;
  192. DWORD XHdrCmdsPerSec;
  193. DWORD XOverCmds;
  194. DWORD XOverCmdsPerSec;
  195. DWORD XPatCmds;
  196. DWORD XPatCmdsPerSec;
  197. DWORD XReplicCmds;
  198. DWORD XReplicCmdsPerSec;
  199. DWORD dwReservedFor8ByteAlignment;
  200. } NNTP_COUNTER_BLOCK2, * PNNTP_COUNTER_BLOCK2;
  201. extern NNTP_DATA_DEFINITION_OBJECT1 NntpDataDefinitionObject1;
  202. extern NNTP_DATA_DEFINITION_OBJECT2 NntpDataDefinitionObject2;
  203. #define NUMBER_OF_NNTP_COUNTERS_OBJECT1 ((sizeof(NNTP_DATA_DEFINITION_OBJECT1) - \
  204. sizeof(PERF_OBJECT_TYPE)) / \
  205. sizeof(PERF_COUNTER_DEFINITION))
  206. #define NUMBER_OF_NNTP_COUNTERS_OBJECT2 ((sizeof(NNTP_DATA_DEFINITION_OBJECT2) - \
  207. sizeof(PERF_OBJECT_TYPE)) / \
  208. sizeof(PERF_COUNTER_DEFINITION))
  209. //
  210. // Restore default packing & alignment.
  211. //
  212. #pragma pack()
  213. #endif // _NNTPDATA_H_