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.

213 lines
7.9 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. w3data.h
  7. Extensible object definitions for the W3 Server's counter
  8. objects & counters.
  9. FILE HISTORY:
  10. KeithMo 07-Jun-1993 Created.
  11. EmilyK 10-Sep-2000 Altered for IIS 6 counters implementation.
  12. */
  13. #ifndef _W3DATA_H_
  14. #define _W3DATA_H_
  15. #pragma pack(8)
  16. //
  17. // The counter structure returned.
  18. //
  19. typedef struct _W3_DATA_DEFINITION
  20. {
  21. PERF_OBJECT_TYPE W3ObjectType;
  22. PERF_COUNTER_DEFINITION W3BytesSent;
  23. PERF_COUNTER_DEFINITION W3BytesSentSec;
  24. PERF_COUNTER_DEFINITION W3BytesReceived;
  25. PERF_COUNTER_DEFINITION W3BytesReceivedSec;
  26. PERF_COUNTER_DEFINITION W3BytesTotal;
  27. PERF_COUNTER_DEFINITION W3BytesTotalSec;
  28. PERF_COUNTER_DEFINITION W3FilesSent;
  29. PERF_COUNTER_DEFINITION W3FilesSentSec;
  30. PERF_COUNTER_DEFINITION W3FilesReceived;
  31. PERF_COUNTER_DEFINITION W3FilesReceivedSec;
  32. PERF_COUNTER_DEFINITION W3FilesTotal;
  33. PERF_COUNTER_DEFINITION W3FilesSec;
  34. PERF_COUNTER_DEFINITION W3CurrentAnonymous;
  35. PERF_COUNTER_DEFINITION W3CurrentNonAnonymous;
  36. PERF_COUNTER_DEFINITION W3TotalAnonymous;
  37. PERF_COUNTER_DEFINITION W3AnonymousUsersSec;
  38. PERF_COUNTER_DEFINITION W3TotalNonAnonymous;
  39. PERF_COUNTER_DEFINITION W3NonAnonymousUsersSec;
  40. PERF_COUNTER_DEFINITION W3MaxAnonymous;
  41. PERF_COUNTER_DEFINITION W3MaxNonAnonymous;
  42. PERF_COUNTER_DEFINITION W3CurrentConnections;
  43. PERF_COUNTER_DEFINITION W3MaxConnections;
  44. PERF_COUNTER_DEFINITION W3ConnectionAttempts;
  45. PERF_COUNTER_DEFINITION W3ConnectionAttemptsSec;
  46. PERF_COUNTER_DEFINITION W3LogonAttempts;
  47. PERF_COUNTER_DEFINITION W3LogonAttemptsSec;
  48. PERF_COUNTER_DEFINITION W3TotalOptions;
  49. PERF_COUNTER_DEFINITION W3TotalOptionsSec;
  50. PERF_COUNTER_DEFINITION W3TotalGets;
  51. PERF_COUNTER_DEFINITION W3TotalGetsSec;
  52. PERF_COUNTER_DEFINITION W3TotalPosts;
  53. PERF_COUNTER_DEFINITION W3TotalPostsSec;
  54. PERF_COUNTER_DEFINITION W3TotalHeads;
  55. PERF_COUNTER_DEFINITION W3TotalHeadsSec;
  56. PERF_COUNTER_DEFINITION W3TotalPuts;
  57. PERF_COUNTER_DEFINITION W3TotalPutsSec;
  58. PERF_COUNTER_DEFINITION W3TotalDeletes;
  59. PERF_COUNTER_DEFINITION W3TotalDeletesSec;
  60. PERF_COUNTER_DEFINITION W3TotalTraces;
  61. PERF_COUNTER_DEFINITION W3TotalTracesSec;
  62. PERF_COUNTER_DEFINITION W3TotalMove;
  63. PERF_COUNTER_DEFINITION W3TotalMoveSec;
  64. PERF_COUNTER_DEFINITION W3TotalCopy;
  65. PERF_COUNTER_DEFINITION W3TotalCopySec;
  66. PERF_COUNTER_DEFINITION W3TotalMkcol;
  67. PERF_COUNTER_DEFINITION W3TotalMkcolSec;
  68. PERF_COUNTER_DEFINITION W3TotalPropfind;
  69. PERF_COUNTER_DEFINITION W3TotalPropfindSec;
  70. PERF_COUNTER_DEFINITION W3TotalProppatch;
  71. PERF_COUNTER_DEFINITION W3TotalProppatchSec;
  72. PERF_COUNTER_DEFINITION W3TotalSearch;
  73. PERF_COUNTER_DEFINITION W3TotalSearchSec;
  74. PERF_COUNTER_DEFINITION W3TotalLock;
  75. PERF_COUNTER_DEFINITION W3TotalLockSec;
  76. PERF_COUNTER_DEFINITION W3TotalUnlock;
  77. PERF_COUNTER_DEFINITION W3TotalUnlockSec;
  78. PERF_COUNTER_DEFINITION W3TotalOthers;
  79. PERF_COUNTER_DEFINITION W3TotalOthersSec;
  80. PERF_COUNTER_DEFINITION W3TotalRequests;
  81. PERF_COUNTER_DEFINITION W3TotalRequestsSec;
  82. PERF_COUNTER_DEFINITION W3TotalCGIRequests;
  83. PERF_COUNTER_DEFINITION W3CGIRequestsSec;
  84. PERF_COUNTER_DEFINITION W3TotalBGIRequests;
  85. PERF_COUNTER_DEFINITION W3BGIRequestsSec;
  86. PERF_COUNTER_DEFINITION W3TotalNotFoundErrors;
  87. PERF_COUNTER_DEFINITION W3TotalNotFoundErrorsSec;
  88. PERF_COUNTER_DEFINITION W3TotalLockedErrors;
  89. PERF_COUNTER_DEFINITION W3TotalLockedErrorsSec;
  90. PERF_COUNTER_DEFINITION W3CurrentCGIRequests;
  91. PERF_COUNTER_DEFINITION W3CurrentBGIRequests;
  92. PERF_COUNTER_DEFINITION W3MaxCGIRequests;
  93. PERF_COUNTER_DEFINITION W3MaxBGIRequests;
  94. PERF_COUNTER_DEFINITION W3CurrentCalAuth;
  95. PERF_COUNTER_DEFINITION W3MaxCalAuth;
  96. PERF_COUNTER_DEFINITION W3TotalFailedCalAuth;
  97. PERF_COUNTER_DEFINITION W3CurrentCalSsl;
  98. PERF_COUNTER_DEFINITION W3MaxCalSsl;
  99. PERF_COUNTER_DEFINITION W3TotalFailedCalSsl;
  100. PERF_COUNTER_DEFINITION W3BlockedRequests;
  101. PERF_COUNTER_DEFINITION W3AllowedRequests;
  102. PERF_COUNTER_DEFINITION W3RejectedRequests;
  103. PERF_COUNTER_DEFINITION W3CurrentBlockedRequests;
  104. PERF_COUNTER_DEFINITION W3MeasuredBandwidth;
  105. PERF_COUNTER_DEFINITION W3TotalBlockedBandwidthBytes;
  106. PERF_COUNTER_DEFINITION W3CurrentBlockedBandwidthBytes;
  107. PERF_COUNTER_DEFINITION W3ServiceUptime;
  108. } W3_DATA_DEFINITION;
  109. //
  110. // The counter structure returned.
  111. //
  112. typedef struct _W3_GLOBAL_DATA_DEFINITION
  113. {
  114. PERF_OBJECT_TYPE W3GlobalObjectType;
  115. PERF_COUNTER_DEFINITION CurrentFilesCached;
  116. PERF_COUNTER_DEFINITION TotalFilesCached;
  117. PERF_COUNTER_DEFINITION FileCacheHits;
  118. PERF_COUNTER_DEFINITION FileCacheMisses;
  119. PERF_COUNTER_DEFINITION FileCacheHitRatio;
  120. PERF_COUNTER_DEFINITION FileCacheHitRatioDenom;
  121. PERF_COUNTER_DEFINITION FileCacheFlushes;
  122. PERF_COUNTER_DEFINITION CurrentFileCacheMemoryUsage;
  123. PERF_COUNTER_DEFINITION MaxFileCacheMemoryUsage;
  124. PERF_COUNTER_DEFINITION ActiveFlushedFiles;
  125. PERF_COUNTER_DEFINITION TotalFlushedFiles;
  126. PERF_COUNTER_DEFINITION CurrentUrisCached;
  127. PERF_COUNTER_DEFINITION TotalUrisCached;
  128. PERF_COUNTER_DEFINITION UriCacheHits;
  129. PERF_COUNTER_DEFINITION UriCacheMisses;
  130. PERF_COUNTER_DEFINITION UriCacheHitRatio;
  131. PERF_COUNTER_DEFINITION UriCacheHitRatioDenom;
  132. PERF_COUNTER_DEFINITION UriCacheFlushes;
  133. PERF_COUNTER_DEFINITION TotalFlushedUris;
  134. PERF_COUNTER_DEFINITION CurrentBlobsCached;
  135. PERF_COUNTER_DEFINITION TotalBlobsCached;
  136. PERF_COUNTER_DEFINITION BlobCacheHits;
  137. PERF_COUNTER_DEFINITION BlobCacheMisses;
  138. PERF_COUNTER_DEFINITION BlobCacheHitRatio;
  139. PERF_COUNTER_DEFINITION BlobCacheHitRatioDenom;
  140. PERF_COUNTER_DEFINITION BlobCacheFlushes;
  141. PERF_COUNTER_DEFINITION TotalFlushedBlobs;
  142. PERF_COUNTER_DEFINITION UlCurrentUrisCached;
  143. PERF_COUNTER_DEFINITION UlTotalUrisCached;
  144. PERF_COUNTER_DEFINITION UlUriCacheHits;
  145. PERF_COUNTER_DEFINITION UlUriCacheHitsPerSec;
  146. PERF_COUNTER_DEFINITION UlUriCacheMisses;
  147. PERF_COUNTER_DEFINITION UlUriCacheHitRatio;
  148. PERF_COUNTER_DEFINITION UlUriCacheHitRatioDenom;
  149. PERF_COUNTER_DEFINITION UlUriCacheFlushes;
  150. PERF_COUNTER_DEFINITION UlTotalFlushedUris;
  151. } W3_GLOBAL_DATA_DEFINITION;
  152. extern W3_GLOBAL_DATA_DEFINITION W3GlobalDataDefinition;
  153. extern W3_DATA_DEFINITION W3DataDefinition;
  154. extern W3_COUNTER_BLOCK w3c;
  155. extern W3_GLOBAL_COUNTER_BLOCK W3Global;
  156. #define NUMBER_OF_W3_COUNTERS ((sizeof(W3_DATA_DEFINITION) - \
  157. sizeof(PERF_OBJECT_TYPE)) / \
  158. sizeof(PERF_COUNTER_DEFINITION))
  159. #define NUMBER_OF_W3_GLOBAL_COUNTERS ((sizeof(W3_GLOBAL_DATA_DEFINITION) - \
  160. sizeof(PERF_OBJECT_TYPE)) / \
  161. sizeof(PERF_COUNTER_DEFINITION))
  162. //
  163. // Restore default packing & alignment.
  164. //
  165. #pragma pack()
  166. #endif // _W3DATA_H_