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.

247 lines
5.6 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows NT **/
  3. /** Copyright(c) Microsoft Corp., 1993 **/
  4. /**********************************************************************/
  5. /*
  6. winsdata.c
  7. Constant data structures for the FTP Server's counter objects &
  8. counters.
  9. FILE HISTORY:
  10. KeithMo 07-Jun-1993 Created.
  11. */
  12. #include "debug.h"
  13. #include <windows.h>
  14. #include <winperf.h>
  15. #include "winsctrs.h"
  16. #include "winsdata.h"
  17. //
  18. // Initialize the constant portitions of these data structure.
  19. // Certain parts (especially the name/help indices) will be
  20. // updated at initialization time.
  21. //
  22. WINSDATA_DATA_DEFINITION WinsDataDataDefinition =
  23. {
  24. { // WinsDataObjectType
  25. sizeof(WINSDATA_DATA_DEFINITION) + WINSDATA_SIZE_OF_PERFORMANCE_DATA,
  26. sizeof(WINSDATA_DATA_DEFINITION),
  27. sizeof(PERF_OBJECT_TYPE),
  28. WINSCTRS_COUNTER_OBJECT,
  29. 0,
  30. WINSCTRS_COUNTER_OBJECT,
  31. 0,
  32. PERF_DETAIL_ADVANCED,
  33. NUMBER_OF_WINSDATA_COUNTERS,
  34. 2, // Default = Bytes Total/sec
  35. PERF_NO_INSTANCES,
  36. 0,
  37. { 0, 0 },
  38. { 0, 0 }
  39. },
  40. { // UniqueReg
  41. sizeof(PERF_COUNTER_DEFINITION),
  42. WINSCTRS_UNIQUE_REGISTRATIONS,
  43. 0,
  44. WINSCTRS_UNIQUE_REGISTRATIONS,
  45. 0,
  46. 0,
  47. PERF_DETAIL_ADVANCED,
  48. PERF_COUNTER_COUNTER,
  49. sizeof(DWORD),
  50. WINSDATA_UNIQUE_REGISTRATIONS_OFFSET,
  51. },
  52. { // GroupReg
  53. sizeof(PERF_COUNTER_DEFINITION),
  54. WINSCTRS_GROUP_REGISTRATIONS,
  55. 0,
  56. WINSCTRS_GROUP_REGISTRATIONS,
  57. 0,
  58. 0,
  59. PERF_DETAIL_ADVANCED,
  60. PERF_COUNTER_COUNTER,
  61. sizeof(DWORD),
  62. WINSDATA_GROUP_REGISTRATIONS_OFFSET,
  63. },
  64. { // TotalReg
  65. sizeof(PERF_COUNTER_DEFINITION),
  66. WINSCTRS_TOTAL_REGISTRATIONS,
  67. 0,
  68. WINSCTRS_TOTAL_REGISTRATIONS,
  69. 0,
  70. 0,
  71. PERF_DETAIL_ADVANCED,
  72. PERF_COUNTER_COUNTER,
  73. sizeof(DWORD),
  74. WINSDATA_TOTAL_REGISTRATIONS_OFFSET,
  75. },
  76. { // UniqueRef
  77. sizeof(PERF_COUNTER_DEFINITION),
  78. WINSCTRS_UNIQUE_REFRESHES,
  79. 0,
  80. WINSCTRS_UNIQUE_REFRESHES,
  81. 0,
  82. 0,
  83. PERF_DETAIL_ADVANCED,
  84. PERF_COUNTER_COUNTER,
  85. sizeof(DWORD),
  86. WINSDATA_UNIQUE_REFRESHES_OFFSET,
  87. },
  88. { // GroupRef
  89. sizeof(PERF_COUNTER_DEFINITION),
  90. WINSCTRS_GROUP_REFRESHES,
  91. 0,
  92. WINSCTRS_GROUP_REFRESHES,
  93. 0,
  94. 0,
  95. PERF_DETAIL_ADVANCED,
  96. PERF_COUNTER_COUNTER,
  97. sizeof(DWORD),
  98. WINSDATA_GROUP_REFRESHES_OFFSET,
  99. },
  100. { // TotalRef
  101. sizeof(PERF_COUNTER_DEFINITION),
  102. WINSCTRS_TOTAL_REFRESHES,
  103. 0,
  104. WINSCTRS_TOTAL_REFRESHES,
  105. 0,
  106. 0,
  107. PERF_DETAIL_ADVANCED,
  108. PERF_COUNTER_COUNTER,
  109. sizeof(DWORD),
  110. WINSDATA_TOTAL_REFRESHES_OFFSET,
  111. },
  112. { // Releases
  113. sizeof(PERF_COUNTER_DEFINITION),
  114. WINSCTRS_RELEASES,
  115. 0,
  116. WINSCTRS_RELEASES,
  117. 0,
  118. 0,
  119. PERF_DETAIL_ADVANCED,
  120. PERF_COUNTER_COUNTER,
  121. sizeof(DWORD),
  122. WINSDATA_RELEASES_OFFSET,
  123. },
  124. { // Queries
  125. sizeof(PERF_COUNTER_DEFINITION),
  126. WINSCTRS_QUERIES,
  127. 0,
  128. WINSCTRS_QUERIES,
  129. 0,
  130. 0,
  131. PERF_DETAIL_ADVANCED,
  132. PERF_COUNTER_COUNTER,
  133. sizeof(DWORD),
  134. WINSDATA_QUERIES_OFFSET,
  135. },
  136. { // UniqueCnf
  137. sizeof(PERF_COUNTER_DEFINITION),
  138. WINSCTRS_UNIQUE_CONFLICTS,
  139. 0,
  140. WINSCTRS_UNIQUE_CONFLICTS,
  141. 0,
  142. 0,
  143. PERF_DETAIL_ADVANCED,
  144. PERF_COUNTER_COUNTER,
  145. sizeof(DWORD),
  146. WINSDATA_UNIQUE_CONFLICTS_OFFSET,
  147. },
  148. { // GroupCnf
  149. sizeof(PERF_COUNTER_DEFINITION),
  150. WINSCTRS_GROUP_CONFLICTS,
  151. 0,
  152. WINSCTRS_GROUP_CONFLICTS,
  153. 0,
  154. 0,
  155. PERF_DETAIL_ADVANCED,
  156. PERF_COUNTER_COUNTER,
  157. sizeof(DWORD),
  158. WINSDATA_GROUP_CONFLICTS_OFFSET,
  159. },
  160. { // TotalCnf
  161. sizeof(PERF_COUNTER_DEFINITION),
  162. WINSCTRS_TOTAL_CONFLICTS,
  163. 0,
  164. WINSCTRS_TOTAL_CONFLICTS,
  165. 0,
  166. 0,
  167. PERF_DETAIL_ADVANCED,
  168. PERF_COUNTER_COUNTER,
  169. sizeof(DWORD),
  170. WINSDATA_TOTAL_CONFLICTS_OFFSET
  171. },
  172. { // Sucessful releases
  173. sizeof(PERF_COUNTER_DEFINITION),
  174. WINSCTRS_SUCC_RELEASES,
  175. 0,
  176. WINSCTRS_SUCC_RELEASES,
  177. 0,
  178. 0,
  179. PERF_DETAIL_ADVANCED,
  180. PERF_COUNTER_COUNTER,
  181. sizeof(DWORD),
  182. WINSDATA_SUCC_RELEASES_OFFSET
  183. },
  184. { // Failed releases
  185. sizeof(PERF_COUNTER_DEFINITION),
  186. WINSCTRS_FAIL_RELEASES,
  187. 0,
  188. WINSCTRS_FAIL_RELEASES,
  189. 0,
  190. 0,
  191. PERF_DETAIL_ADVANCED,
  192. PERF_COUNTER_COUNTER,
  193. sizeof(DWORD),
  194. WINSDATA_FAIL_RELEASES_OFFSET
  195. },
  196. { // Sucessful queries
  197. sizeof(PERF_COUNTER_DEFINITION),
  198. WINSCTRS_SUCC_QUERIES,
  199. 0,
  200. WINSCTRS_SUCC_QUERIES,
  201. 0,
  202. 0,
  203. PERF_DETAIL_ADVANCED,
  204. PERF_COUNTER_COUNTER,
  205. sizeof(DWORD),
  206. WINSDATA_SUCC_QUERIES_OFFSET
  207. },
  208. { // Failed queries
  209. sizeof(PERF_COUNTER_DEFINITION),
  210. WINSCTRS_FAIL_QUERIES,
  211. 0,
  212. WINSCTRS_FAIL_QUERIES,
  213. 0,
  214. 0,
  215. PERF_DETAIL_ADVANCED,
  216. PERF_COUNTER_COUNTER,
  217. sizeof(DWORD),
  218. WINSDATA_FAIL_QUERIES_OFFSET
  219. }
  220. };