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.

295 lines
6.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. databrws.c
  5. Abstract:
  6. a file containing the constant data structures used by the Performance
  7. Monitor data for the Browser Performance data objects
  8. Created:
  9. Bob Watson 22-Oct-1996
  10. Revision History:
  11. None.
  12. --*/
  13. //
  14. // Include Files
  15. //
  16. #include <windows.h>
  17. #include <winperf.h>
  18. #include <ntprfctr.h>
  19. #include <perfutil.h>
  20. #include "databrws.h"
  21. // dummy variable for field sizing.
  22. static BROWSER_COUNTER_DATA bcd;
  23. BROWSER_DATA_DEFINITION BrowserDataDefinition =
  24. {
  25. { sizeof (BROWSER_DATA_DEFINITION) + sizeof (BROWSER_COUNTER_DATA),
  26. sizeof (BROWSER_DATA_DEFINITION),
  27. sizeof (PERF_OBJECT_TYPE),
  28. BROWSER_OBJECT_TITLE_INDEX,
  29. 0,
  30. 53,
  31. 0,
  32. PERF_DETAIL_NOVICE,
  33. (sizeof(BROWSER_DATA_DEFINITION) - sizeof(PERF_OBJECT_TYPE)) /
  34. sizeof (PERF_COUNTER_DEFINITION),
  35. 0,
  36. -1,
  37. UNICODE_CODE_PAGE,
  38. {0L, 0L},
  39. {0L, 0L}
  40. },
  41. {
  42. sizeof (PERF_COUNTER_DEFINITION),
  43. 54,
  44. 0,
  45. 55,
  46. 0,
  47. 0,
  48. PERF_DETAIL_NOVICE,
  49. PERF_COUNTER_BULK_COUNT,
  50. sizeof (bcd.ServerAnnounce),
  51. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerAnnounce
  52. },
  53. {
  54. sizeof (PERF_COUNTER_DEFINITION),
  55. 78,
  56. 0,
  57. 79,
  58. 0,
  59. 0,
  60. PERF_DETAIL_NOVICE,
  61. PERF_COUNTER_BULK_COUNT,
  62. sizeof (bcd.DomainAnnounce),
  63. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->DomainAnnounce
  64. },
  65. {
  66. sizeof (PERF_COUNTER_DEFINITION),
  67. 188,
  68. 0,
  69. 813,
  70. 0,
  71. 0,
  72. PERF_DETAIL_NOVICE,
  73. PERF_COUNTER_BULK_COUNT,
  74. sizeof (bcd.TotalAnnounce),
  75. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->TotalAnnounce
  76. },
  77. {
  78. sizeof (PERF_COUNTER_DEFINITION),
  79. 80,
  80. 0,
  81. 81,
  82. 0,
  83. 0,
  84. PERF_DETAIL_NOVICE,
  85. PERF_COUNTER_COUNTER,
  86. sizeof (bcd.ElectionPacket),
  87. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ElectionPacket
  88. },
  89. {
  90. sizeof (PERF_COUNTER_DEFINITION),
  91. 82,
  92. 0,
  93. 83,
  94. 0,
  95. 0,
  96. PERF_DETAIL_NOVICE,
  97. PERF_COUNTER_COUNTER,
  98. sizeof (bcd.MailslotWrite),
  99. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotWrite
  100. },
  101. {
  102. sizeof (PERF_COUNTER_DEFINITION),
  103. 84,
  104. 0,
  105. 85,
  106. 0,
  107. 0,
  108. PERF_DETAIL_NOVICE,
  109. PERF_COUNTER_COUNTER,
  110. sizeof (bcd.ServerList),
  111. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerList
  112. },
  113. {
  114. sizeof (PERF_COUNTER_DEFINITION),
  115. 156,
  116. 0,
  117. 161,
  118. 0,
  119. 0,
  120. PERF_DETAIL_NOVICE,
  121. PERF_COUNTER_COUNTER,
  122. sizeof (bcd.ServerEnum),
  123. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerEnum
  124. },
  125. {
  126. sizeof (PERF_COUNTER_DEFINITION),
  127. 158,
  128. 0,
  129. 163,
  130. 0,
  131. 0,
  132. PERF_DETAIL_NOVICE,
  133. PERF_COUNTER_COUNTER,
  134. sizeof (bcd.DomainEnum),
  135. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->DomainEnum
  136. },
  137. {
  138. sizeof (PERF_COUNTER_DEFINITION),
  139. 160,
  140. 0,
  141. 165,
  142. 0,
  143. 0,
  144. PERF_DETAIL_NOVICE,
  145. PERF_COUNTER_COUNTER,
  146. sizeof (bcd.OtherEnum),
  147. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->OtherEnum
  148. },
  149. {
  150. sizeof (PERF_COUNTER_DEFINITION),
  151. 190,
  152. 0,
  153. 815,
  154. 0,
  155. 0,
  156. PERF_DETAIL_NOVICE,
  157. PERF_COUNTER_COUNTER,
  158. sizeof (bcd.TotalEnum),
  159. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->TotalEnum
  160. },
  161. {
  162. sizeof (PERF_COUNTER_DEFINITION),
  163. 162,
  164. 0,
  165. 167,
  166. 0,
  167. 0,
  168. PERF_DETAIL_NOVICE,
  169. PERF_COUNTER_RAWCOUNT,
  170. sizeof (bcd.ServerAnnounceMiss),
  171. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerAnnounceMiss
  172. },
  173. {
  174. sizeof (PERF_COUNTER_DEFINITION),
  175. 164,
  176. 0,
  177. 169,
  178. 0,
  179. 0,
  180. PERF_DETAIL_NOVICE,
  181. PERF_COUNTER_RAWCOUNT,
  182. sizeof (bcd.MailslotDatagramMiss),
  183. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotDatagramMiss
  184. },
  185. {
  186. sizeof (PERF_COUNTER_DEFINITION),
  187. 166,
  188. 0,
  189. 171,
  190. 0,
  191. 0,
  192. PERF_DETAIL_NOVICE,
  193. PERF_COUNTER_RAWCOUNT,
  194. sizeof (bcd.ServerListMiss),
  195. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerListMiss
  196. },
  197. {
  198. sizeof (PERF_COUNTER_DEFINITION),
  199. 168,
  200. 0,
  201. 381,
  202. 0,
  203. 0,
  204. PERF_DETAIL_NOVICE,
  205. PERF_COUNTER_COUNTER,
  206. sizeof (bcd.ServerAnnounceAllocMiss),
  207. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->ServerAnnounceAllocMiss
  208. },
  209. {
  210. sizeof (PERF_COUNTER_DEFINITION),
  211. 170,
  212. 0,
  213. 383,
  214. 0,
  215. 0,
  216. PERF_DETAIL_NOVICE,
  217. PERF_COUNTER_RAWCOUNT,
  218. sizeof (bcd.MailslotAllocFail),
  219. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotAllocFail
  220. },
  221. {
  222. sizeof (PERF_COUNTER_DEFINITION),
  223. 806,
  224. 0,
  225. 385,
  226. 0,
  227. 0,
  228. PERF_DETAIL_NOVICE,
  229. PERF_COUNTER_RAWCOUNT,
  230. sizeof (bcd.MailslotReceiveFail),
  231. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotReceiveFail
  232. },
  233. {
  234. sizeof (PERF_COUNTER_DEFINITION),
  235. 808,
  236. 0,
  237. 387,
  238. 0,
  239. 0,
  240. PERF_DETAIL_NOVICE,
  241. PERF_COUNTER_RAWCOUNT,
  242. sizeof (bcd.MailslotWriteFail),
  243. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotWriteFail
  244. },
  245. {
  246. sizeof (PERF_COUNTER_DEFINITION),
  247. 810,
  248. 0,
  249. 807,
  250. 0,
  251. 0,
  252. PERF_DETAIL_NOVICE,
  253. PERF_COUNTER_COUNTER,
  254. sizeof (bcd.MailslotOpenFail),
  255. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MailslotOpenFail
  256. },
  257. {
  258. sizeof (PERF_COUNTER_DEFINITION),
  259. 812,
  260. 0,
  261. 809,
  262. 0,
  263. 0,
  264. PERF_DETAIL_NOVICE,
  265. PERF_COUNTER_RAWCOUNT,
  266. sizeof (bcd.MasterAnnounceDup),
  267. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->MasterAnnounceDup
  268. },
  269. {
  270. sizeof (PERF_COUNTER_DEFINITION),
  271. 814,
  272. 0,
  273. 811,
  274. 0,
  275. 0,
  276. PERF_DETAIL_NOVICE,
  277. PERF_COUNTER_BULK_COUNT,
  278. sizeof (bcd.DatagramIllegal),
  279. (DWORD)(ULONG_PTR)&((BROWSER_COUNTER_DATA *)0)->DatagramIllegal
  280. }
  281. };
  282.