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.

250 lines
8.3 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. w3ata.h
  7. Extensible object definitions for the W3 Server's counter
  8. objects & counters.
  9. FILE HISTORY:
  10. KeithMo 07-Jun-1993 Created.
  11. */
  12. #ifndef _W3ATA_H_
  13. #define _W3ATA_H_
  14. #pragma pack(8)
  15. //
  16. // The counter structure returned.
  17. //
  18. typedef struct _W3_DATA_DEFINITION
  19. {
  20. PERF_OBJECT_TYPE W3ObjectType;
  21. PERF_COUNTER_DEFINITION W3BytesSent;
  22. PERF_COUNTER_DEFINITION W3BytesReceived;
  23. PERF_COUNTER_DEFINITION W3BytesTotal;
  24. PERF_COUNTER_DEFINITION W3FilesSent;
  25. PERF_COUNTER_DEFINITION W3FilesSentSec;
  26. PERF_COUNTER_DEFINITION W3FilesReceived;
  27. PERF_COUNTER_DEFINITION W3FilesReceivedSec;
  28. PERF_COUNTER_DEFINITION W3FilesTotal;
  29. PERF_COUNTER_DEFINITION W3FilesSec;
  30. PERF_COUNTER_DEFINITION W3CurrentAnonymous;
  31. PERF_COUNTER_DEFINITION W3CurrentNonAnonymous;
  32. PERF_COUNTER_DEFINITION W3TotalAnonymous;
  33. PERF_COUNTER_DEFINITION W3AnonymousUsersSec;
  34. PERF_COUNTER_DEFINITION W3TotalNonAnonymous;
  35. PERF_COUNTER_DEFINITION W3NonAnonymousUsersSec;
  36. PERF_COUNTER_DEFINITION W3MaxAnonymous;
  37. PERF_COUNTER_DEFINITION W3MaxNonAnonymous;
  38. PERF_COUNTER_DEFINITION W3CurrentConnections;
  39. PERF_COUNTER_DEFINITION W3MaxConnections;
  40. PERF_COUNTER_DEFINITION W3ConnectionAttempts;
  41. PERF_COUNTER_DEFINITION W3ConnectionAttemptsSec;
  42. PERF_COUNTER_DEFINITION W3LogonAttempts;
  43. PERF_COUNTER_DEFINITION W3LogonAttemptsSec;
  44. PERF_COUNTER_DEFINITION W3TotalOptions;
  45. PERF_COUNTER_DEFINITION W3TotalOptionsSec;
  46. PERF_COUNTER_DEFINITION W3TotalGets;
  47. PERF_COUNTER_DEFINITION W3TotalGetsSec;
  48. PERF_COUNTER_DEFINITION W3TotalPosts;
  49. PERF_COUNTER_DEFINITION W3TotalPostsSec;
  50. PERF_COUNTER_DEFINITION W3TotalHeads;
  51. PERF_COUNTER_DEFINITION W3TotalHeadsSec;
  52. PERF_COUNTER_DEFINITION W3TotalPuts;
  53. PERF_COUNTER_DEFINITION W3TotalPutsSec;
  54. PERF_COUNTER_DEFINITION W3TotalDeletes;
  55. PERF_COUNTER_DEFINITION W3TotalDeletesSec;
  56. PERF_COUNTER_DEFINITION W3TotalTraces;
  57. PERF_COUNTER_DEFINITION W3TotalTracesSec;
  58. PERF_COUNTER_DEFINITION W3TotalMove;
  59. PERF_COUNTER_DEFINITION W3TotalMoveSec;
  60. PERF_COUNTER_DEFINITION W3TotalCopy;
  61. PERF_COUNTER_DEFINITION W3TotalCopySec;
  62. PERF_COUNTER_DEFINITION W3TotalMkcol;
  63. PERF_COUNTER_DEFINITION W3TotalMkcolSec;
  64. PERF_COUNTER_DEFINITION W3TotalPropfind;
  65. PERF_COUNTER_DEFINITION W3TotalPropfindSec;
  66. PERF_COUNTER_DEFINITION W3TotalProppatch;
  67. PERF_COUNTER_DEFINITION W3TotalProppatchSec;
  68. PERF_COUNTER_DEFINITION W3TotalSearch;
  69. PERF_COUNTER_DEFINITION W3TotalSearchSec;
  70. PERF_COUNTER_DEFINITION W3TotalLock;
  71. PERF_COUNTER_DEFINITION W3TotalLockSec;
  72. PERF_COUNTER_DEFINITION W3TotalUnlock;
  73. PERF_COUNTER_DEFINITION W3TotalUnlockSec;
  74. PERF_COUNTER_DEFINITION W3TotalOthers;
  75. PERF_COUNTER_DEFINITION W3TotalOthersSec;
  76. PERF_COUNTER_DEFINITION W3TotalRequests;
  77. PERF_COUNTER_DEFINITION W3TotalRequestsSec;
  78. PERF_COUNTER_DEFINITION W3TotalCGIRequests;
  79. PERF_COUNTER_DEFINITION W3CGIRequestsSec;
  80. PERF_COUNTER_DEFINITION W3TotalBGIRequests;
  81. PERF_COUNTER_DEFINITION W3BGIRequestsSec;
  82. PERF_COUNTER_DEFINITION W3TotalNotFoundErrors;
  83. PERF_COUNTER_DEFINITION W3TotalNotFoundErrorsSec;
  84. PERF_COUNTER_DEFINITION W3TotalLockedErrors;
  85. PERF_COUNTER_DEFINITION W3TotalLockedErrorsSec;
  86. PERF_COUNTER_DEFINITION W3CurrentCGIRequests;
  87. PERF_COUNTER_DEFINITION W3CurrentBGIRequests;
  88. PERF_COUNTER_DEFINITION W3MaxCGIRequests;
  89. PERF_COUNTER_DEFINITION W3MaxBGIRequests;
  90. #if defined(CAL_ENABLED)
  91. PERF_COUNTER_DEFINITION W3CurrentCalAuth;
  92. PERF_COUNTER_DEFINITION W3MaxCalAuth;
  93. PERF_COUNTER_DEFINITION W3TotalFailedCalAuth;
  94. PERF_COUNTER_DEFINITION W3CurrentCalSsl;
  95. PERF_COUNTER_DEFINITION W3MaxCalSsl;
  96. PERF_COUNTER_DEFINITION W3TotalFailedCalSsl;
  97. #endif
  98. PERF_COUNTER_DEFINITION W3BlockedRequests;
  99. PERF_COUNTER_DEFINITION W3AllowedRequests;
  100. PERF_COUNTER_DEFINITION W3RejectedRequests;
  101. PERF_COUNTER_DEFINITION W3CurrentBlockedRequests;
  102. PERF_COUNTER_DEFINITION W3MeasuredBandwidth;
  103. PERF_COUNTER_DEFINITION W3ServiceUptime;
  104. } W3_DATA_DEFINITION;
  105. typedef struct _W3_COUNTER_BLOCK {
  106. PERF_COUNTER_BLOCK PerfCounterBlock;
  107. LONGLONG BytesSent;
  108. LONGLONG BytesReceived;
  109. LONGLONG BytesTotal;
  110. DWORD FilesSent;
  111. DWORD FilesSentSec;
  112. DWORD FilesReceived;
  113. DWORD FilesReceivedSec;
  114. DWORD FilesTotal;
  115. DWORD FilesSec;
  116. DWORD CurrentAnonymous;
  117. DWORD CurrentNonAnonymous;
  118. DWORD TotalAnonymous;
  119. DWORD AnonymousUsersSec;
  120. DWORD TotalNonAnonymous;
  121. DWORD NonAnonymousUsersSec;
  122. DWORD MaxAnonymous;
  123. DWORD MaxNonAnonymous;
  124. DWORD CurrentConnections;
  125. DWORD MaxConnections;
  126. DWORD ConnectionAttempts;
  127. DWORD ConnectionAttemptsSec;
  128. DWORD LogonAttempts;
  129. DWORD LogonAttemptsSec;
  130. DWORD TotalOptions;
  131. DWORD TotalOptionsSec;
  132. DWORD TotalGets;
  133. DWORD TotalGetsSec;
  134. DWORD TotalPosts;
  135. DWORD TotalPostsSec;
  136. DWORD TotalHeads;
  137. DWORD TotalHeadsSec;
  138. DWORD TotalPuts;
  139. DWORD TotalPutsSec;
  140. DWORD TotalDeletes;
  141. DWORD TotalDeletesSec;
  142. DWORD TotalTraces;
  143. DWORD TotalTracesSec;
  144. DWORD TotalMove;
  145. DWORD TotalMoveSec;
  146. DWORD TotalCopy;
  147. DWORD TotalCopySec;
  148. DWORD TotalMkcol;
  149. DWORD TotalMkcolSec;
  150. DWORD TotalPropfind;
  151. DWORD TotalPropfindSec;
  152. DWORD TotalProppatch;
  153. DWORD TotalProppatchSec;
  154. DWORD TotalSearch;
  155. DWORD TotalSearchSec;
  156. DWORD TotalLock;
  157. DWORD TotalLockSec;
  158. DWORD TotalUnlock;
  159. DWORD TotalUnlockSec;
  160. DWORD TotalOthers;
  161. DWORD TotalOthersSec;
  162. DWORD TotalRequests;
  163. DWORD TotalRequestsSec;
  164. DWORD TotalCGIRequests;
  165. DWORD CGIRequestsSec;
  166. DWORD TotalBGIRequests;
  167. DWORD BGIRequestsSec;
  168. DWORD TotalNotFoundErrors;
  169. DWORD TotalNotFoundErrorsSec;
  170. DWORD TotalLockedErrors;
  171. DWORD TotalLockedErrorsSec;
  172. DWORD CurrentCGIRequests;
  173. DWORD CurrentBGIRequests;
  174. DWORD MaxCGIRequests;
  175. DWORD MaxBGIRequests;
  176. #if defined(CAL_ENABLED)
  177. DWORD CurrentCalAuth;
  178. DWORD MaxCalAuth;
  179. DWORD TotalFailedCalAuth;
  180. DWORD CurrentCalSsl;
  181. DWORD MaxCalSsl;
  182. DWORD TotalFailedCalSsl;
  183. #endif
  184. DWORD BlockedRequests;
  185. DWORD AllowedRequests;
  186. DWORD RejectedRequests;
  187. DWORD CurrentBlockedRequests;
  188. DWORD MeasuredBandwidth;
  189. DWORD ServiceUptime;
  190. } W3_COUNTER_BLOCK, * PW3_COUNTER_BLOCK;
  191. extern W3_DATA_DEFINITION W3DataDefinition;
  192. #define NUMBER_OF_W3_COUNTERS ((sizeof(W3_DATA_DEFINITION) - \
  193. sizeof(PERF_OBJECT_TYPE)) / \
  194. sizeof(PERF_COUNTER_DEFINITION))
  195. //
  196. // Restore default packing & alignment.
  197. //
  198. #pragma pack()
  199. #endif // _W3ATA_H_