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.

200 lines
4.9 KiB

  1. /*++
  2. Copyright (c) 1998-2000 Microsoft Corporation
  3. Module Name:
  4. wpcounters.h
  5. Abstract:
  6. Module: Definition of counters
  7. Author:
  8. Emily B. Kruglick (emilyk) Aug-17-2000
  9. Revision History:
  10. --*/
  11. #ifndef _WPCOUNTERS_H_
  12. #define _WPCOUNTERS_H_
  13. //
  14. // This structure is used by WAS and the WP to communicate
  15. // the global counters.
  16. //
  17. // If you change this structure you must change the associated enum (below) and
  18. // the array found in ctrstshr.cxx.
  19. //
  20. struct IISWPGlobalCounters
  21. {
  22. ULONGLONG CurrentFileCacheMemoryUsage;
  23. ULONGLONG MaxFileCacheMemoryUsage;
  24. DWORD CurrentFilesCached;
  25. DWORD TotalFilesCached;
  26. DWORD FileCacheHits;
  27. DWORD FileCacheMisses;
  28. DWORD FileCacheFlushes;
  29. DWORD ActiveFlushedFiles;
  30. DWORD TotalFlushedFiles;
  31. DWORD CurrentUrisCached;
  32. DWORD TotalUrisCached;
  33. DWORD UriCacheHits;
  34. DWORD UriCacheMisses;
  35. DWORD UriCacheFlushes;
  36. DWORD TotalFlushedUris;
  37. DWORD CurrentBlobsCached;
  38. DWORD TotalBlobsCached;
  39. DWORD BlobCacheHits;
  40. DWORD BlobCacheMisses;
  41. DWORD BlobCacheFlushes;
  42. DWORD TotalFlushedBlobs;
  43. };
  44. //
  45. // Used by the WP to lookup counter definitions in the array below.
  46. //
  47. // If you change this enum you must change the associated struct (above) and
  48. // the array found in ctrstshr.cxx.
  49. //
  50. typedef enum _IIS_WP_GLOBAL_COUNTERS_ENUM
  51. {
  52. WPGlobalCtrsCurrentFileCacheMemoryUsage = 0,
  53. WPGlobalCtrsMaxFileCacheMemoryUsage,
  54. WPGlobalCtrsCurrentFilesCached,
  55. WPGlobalCtrsTotalFilesCached,
  56. WPGlobalCtrsFileCacheHits,
  57. WPGlobalCtrsFileCacheMisses,
  58. WPGlobalCtrsFileCacheFlushes,
  59. WPGlobalCtrsActiveFlushedFiles,
  60. WPGlobalCtrsTotalFlushedFiles,
  61. WPGlobalCtrsCurrentUrisCached,
  62. WPGlobalCtrsTotalUrisCached,
  63. WPGlobalCtrsUriCacheHits,
  64. WPGlobalCtrsUriCacheMisses,
  65. WPGlobalCtrsUriCacheFlushes,
  66. WPGlobalCtrsTotalFlushedUris,
  67. WPGlobalCtrsCurrentBlobsCached,
  68. WPGlobalCtrsTotalBlobsCached,
  69. WPGlobalCtrsBlobCacheHits,
  70. WPGlobalCtrsBlobCacheMisses,
  71. WPGlobalCtrsBlobCacheFlushes,
  72. WPGlobalCtrsTotalFlushedBlobs,
  73. WPGlobalCtrsMaximum
  74. } IIS_WP_GLOBAL_COUNTERS_ENUM;
  75. //
  76. // Used to transfer site counter information from WP to WAS
  77. //
  78. // If you change this structure you must change the associated enum (below) and
  79. // the array found in ctrstshr.cxx.
  80. //
  81. struct IISWPSiteCounters
  82. {
  83. DWORD SiteID;
  84. DWORD FilesSent;
  85. DWORD FilesReceived;
  86. DWORD FilesTransferred;
  87. DWORD CurrentAnonUsers;
  88. DWORD CurrentNonAnonUsers;
  89. DWORD AnonUsers;
  90. DWORD NonAnonUsers;
  91. DWORD MaxAnonUsers;
  92. DWORD MaxNonAnonUsers;
  93. DWORD LogonAttempts;
  94. DWORD GetReqs;
  95. DWORD OptionsReqs;
  96. DWORD PostReqs;
  97. DWORD HeadReqs;
  98. DWORD PutReqs;
  99. DWORD DeleteReqs;
  100. DWORD TraceReqs;
  101. DWORD MoveReqs;
  102. DWORD CopyReqs;
  103. DWORD MkcolReqs;
  104. DWORD PropfindReqs;
  105. DWORD ProppatchReqs;
  106. DWORD SearchReqs;
  107. DWORD LockReqs;
  108. DWORD UnlockReqs;
  109. DWORD OtherReqs;
  110. DWORD CurrentCgiReqs;
  111. DWORD CgiReqs;
  112. DWORD MaxCgiReqs;
  113. DWORD CurrentIsapiExtReqs;
  114. DWORD IsapiExtReqs;
  115. DWORD MaxIsapiExtReqs;
  116. DWORD NotFoundErrors;
  117. DWORD LockedErrors;
  118. };
  119. //
  120. // Used by WP to lookup counter definitions in the array below.
  121. //
  122. // If you change this enum you must change the associated struct (above) and
  123. // the array found in ctrstshr.cxx.
  124. //
  125. typedef enum _IIS_WP_SITE_COUNTERS_ENUM
  126. {
  127. WPSiteCtrsFilesSent = 0,
  128. WPSiteCtrsFilesReceived,
  129. WPSiteCtrsFilesTransferred,
  130. WPSiteCtrsCurrentAnonUsers,
  131. WPSiteCtrsCurrentNonAnonUsers,
  132. WPSiteCtrsAnonUsers,
  133. WPSiteCtrsNonAnonUsers,
  134. WPSiteCtrsMaxAnonUsers,
  135. WPSiteCtrsMaxNonAnonUsers,
  136. WPSiteCtrsLogonAttempts,
  137. WPSiteCtrsGetReqs,
  138. WPSiteCtrsOptionsReqs,
  139. WPSiteCtrsPostReqs,
  140. WPSiteCtrsHeadReqs,
  141. WPSiteCtrsPutReqs,
  142. WPSiteCtrsDeleteReqs,
  143. WPSiteCtrsTraceReqs,
  144. WPSiteCtrsMoveReqs,
  145. WPSiteCtrsCopyReqs,
  146. WPSiteCtrsMkcolReqs,
  147. WPSiteCtrsPropfindReqs,
  148. WPSiteCtrsProppatchReqs,
  149. WPSiteCtrsSearchReqs,
  150. WPSiteCtrsLockReqs,
  151. WPSiteCtrsUnlockReqs,
  152. WPSiteCtrsOtherReqs,
  153. WPSiteCtrsCurrentCgiReqs,
  154. WPSiteCtrsCgiReqs,
  155. WPSiteCtrsMaxCgiReqs,
  156. WPSiteCtrsCurrentIsapiExtReqs,
  157. WPSiteCtrsIsapiExtReqs,
  158. WPSiteCtrsMaxIsapiExtReqs,
  159. WPSiteCtrsNotFoundErrors,
  160. WPSiteCtrsLockedErrors,
  161. WPSiteCtrsMaximum
  162. } IIS_WP_SITE_COUNTERS_ENUM;
  163. //
  164. // Arrays are found in ctrshstr.cxx.
  165. // Used by WAS and WP.
  166. //
  167. #ifdef __cplusplus
  168. extern "C" {
  169. #endif // __cplusplus
  170. extern HTTP_PROP_DESC aIISWPSiteDescription[];
  171. extern HTTP_PROP_DESC aIISWPGlobalDescription[];
  172. extern HTTP_PROP_DESC aIISULSiteDescription[];
  173. extern HTTP_PROP_DESC aIISULGlobalDescription[];
  174. #ifdef __cplusplus
  175. } // extern "C"
  176. #endif // __cplusplus
  177. #endif // _WPCOUNTERS_H_