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.

544 lines
11 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. datanbf.c
  5. Abstract:
  6. a file containing the constant data structures
  7. for the Performance Monitor data for the Nbf
  8. Extensible Objects.
  9. This file contains a set of constant data structures which are
  10. currently defined for the Nbf Extensible Objects. This is an
  11. example of how other such objects could be defined.
  12. Created:
  13. Russ Blake 07/31/92
  14. Revision History:
  15. None.
  16. --*/
  17. //
  18. // Include Files
  19. //
  20. #include <nt.h>
  21. #include <ntrtl.h>
  22. #include <nturtl.h>
  23. #include <windows.h>
  24. #include <winperf.h>
  25. #include "datanbf.h"
  26. //
  27. // Constant structure initializations
  28. //
  29. NBF_RESOURCE_DATA_DEFINITION NbfResourceDataDefinition = {
  30. { sizeof(NBF_RESOURCE_DATA_DEFINITION) + SIZE_OF_NBF_RESOURCE_DATA,
  31. sizeof(NBF_RESOURCE_DATA_DEFINITION),
  32. sizeof(PERF_OBJECT_TYPE),
  33. 494,
  34. 0,
  35. 495,
  36. 0,
  37. PERF_DETAIL_ADVANCED,
  38. (sizeof(NBF_RESOURCE_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  39. sizeof(PERF_COUNTER_DEFINITION),
  40. 1,
  41. 0,
  42. 0
  43. },
  44. { sizeof(PERF_COUNTER_DEFINITION),
  45. 496,
  46. 0,
  47. 497,
  48. 0,
  49. 0,
  50. PERF_DETAIL_ADVANCED,
  51. PERF_COUNTER_RAWCOUNT,
  52. sizeof(DWORD),
  53. MAXIMUM_USED_OFFSET
  54. },
  55. { sizeof(PERF_COUNTER_DEFINITION),
  56. 498,
  57. 0,
  58. 499,
  59. 0,
  60. 0,
  61. PERF_DETAIL_ADVANCED,
  62. PERF_COUNTER_RAWCOUNT,
  63. sizeof(DWORD),
  64. AVERAGE_USED_OFFSET
  65. },
  66. { sizeof(PERF_COUNTER_DEFINITION),
  67. 500,
  68. 0,
  69. 501,
  70. 0,
  71. 0,
  72. PERF_DETAIL_ADVANCED,
  73. PERF_COUNTER_RAWCOUNT,
  74. sizeof(DWORD),
  75. NUMBER_OF_EXHAUSTIONS_OFFSET
  76. }
  77. };
  78. NBF_DATA_DEFINITION NbfDataDefinition = {
  79. { sizeof(NBF_DATA_DEFINITION) + SIZE_OF_NBF_DATA,
  80. sizeof(NBF_DATA_DEFINITION),
  81. sizeof(PERF_OBJECT_TYPE),
  82. 492,
  83. 0,
  84. 493,
  85. 0,
  86. PERF_DETAIL_ADVANCED,
  87. (sizeof(NBF_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  88. sizeof(PERF_COUNTER_DEFINITION),
  89. 5, // default is Bytes Total /sec
  90. 0,
  91. 0
  92. },
  93. { sizeof(PERF_COUNTER_DEFINITION),
  94. 438,
  95. 0,
  96. 439,
  97. 0,
  98. -1,
  99. PERF_DETAIL_ADVANCED,
  100. PERF_COUNTER_COUNTER,
  101. sizeof(DWORD),
  102. DATAGRAMS_OFFSET
  103. },
  104. { sizeof(PERF_COUNTER_DEFINITION),
  105. 440,
  106. 0,
  107. 441,
  108. 0,
  109. -4,
  110. PERF_DETAIL_ADVANCED,
  111. PERF_COUNTER_BULK_COUNT,
  112. sizeof(LARGE_INTEGER),
  113. DATAGRAM_BYTES_OFFSET
  114. },
  115. { sizeof(PERF_COUNTER_DEFINITION),
  116. 400,
  117. 0,
  118. 451,
  119. 0,
  120. -1,
  121. PERF_DETAIL_ADVANCED,
  122. PERF_COUNTER_COUNTER,
  123. sizeof(DWORD),
  124. PACKETS_OFFSET
  125. },
  126. { sizeof(PERF_COUNTER_DEFINITION),
  127. 456,
  128. 0,
  129. 457,
  130. 0,
  131. -1,
  132. PERF_DETAIL_ADVANCED,
  133. PERF_COUNTER_COUNTER,
  134. sizeof(DWORD),
  135. FRAMES_OFFSET
  136. },
  137. { sizeof(PERF_COUNTER_DEFINITION),
  138. 458,
  139. 0,
  140. 459,
  141. 0,
  142. -4,
  143. PERF_DETAIL_ADVANCED,
  144. PERF_COUNTER_BULK_COUNT,
  145. sizeof(LARGE_INTEGER),
  146. FRAMES_BYTES_OFFSET
  147. },
  148. { sizeof(PERF_COUNTER_DEFINITION),
  149. 388,
  150. 0,
  151. 67,
  152. 0,
  153. -4,
  154. PERF_DETAIL_ADVANCED,
  155. PERF_COUNTER_BULK_COUNT,
  156. sizeof(LARGE_INTEGER),
  157. BYTES_TOTAL_OFFSET
  158. },
  159. { sizeof(PERF_COUNTER_DEFINITION),
  160. 412,
  161. 0,
  162. 413,
  163. 0,
  164. 0,
  165. PERF_DETAIL_ADVANCED,
  166. PERF_COUNTER_RAWCOUNT,
  167. sizeof(DWORD),
  168. OPEN_CONNECTIONS_OFFSET
  169. },
  170. { sizeof(PERF_COUNTER_DEFINITION),
  171. 414,
  172. 0,
  173. 415,
  174. 0,
  175. 0,
  176. PERF_DETAIL_ADVANCED,
  177. PERF_COUNTER_RAWCOUNT,
  178. sizeof(DWORD),
  179. CONNECTIONS_NO_RETRY_OFFSET
  180. },
  181. { sizeof(PERF_COUNTER_DEFINITION),
  182. 416,
  183. 0,
  184. 417,
  185. 0,
  186. 0,
  187. PERF_DETAIL_ADVANCED,
  188. PERF_COUNTER_RAWCOUNT,
  189. sizeof(DWORD),
  190. CONNECTIONS_RETRY_OFFSET
  191. },
  192. { sizeof(PERF_COUNTER_DEFINITION),
  193. 418,
  194. 0,
  195. 419,
  196. 0,
  197. 0,
  198. PERF_DETAIL_ADVANCED,
  199. PERF_COUNTER_RAWCOUNT,
  200. sizeof(DWORD),
  201. LOCAL_DISCONNECTS_OFFSET
  202. },
  203. { sizeof(PERF_COUNTER_DEFINITION),
  204. 420,
  205. 0,
  206. 421,
  207. 0,
  208. 0,
  209. PERF_DETAIL_ADVANCED,
  210. PERF_COUNTER_RAWCOUNT,
  211. sizeof(DWORD),
  212. REMOTE_DISCONNECTS_OFFSET
  213. },
  214. { sizeof(PERF_COUNTER_DEFINITION),
  215. 422,
  216. 0,
  217. 423,
  218. 0,
  219. 0,
  220. PERF_DETAIL_ADVANCED,
  221. PERF_COUNTER_RAWCOUNT,
  222. sizeof(DWORD),
  223. LINK_FAILURES_OFFSET
  224. },
  225. { sizeof(PERF_COUNTER_DEFINITION),
  226. 424,
  227. 0,
  228. 425,
  229. 0,
  230. 0,
  231. PERF_DETAIL_ADVANCED,
  232. PERF_COUNTER_RAWCOUNT,
  233. sizeof(DWORD),
  234. ADAPTER_FAILURES_OFFSET
  235. },
  236. { sizeof(PERF_COUNTER_DEFINITION),
  237. 426,
  238. 0,
  239. 427,
  240. 0,
  241. 0,
  242. PERF_DETAIL_ADVANCED,
  243. PERF_COUNTER_RAWCOUNT,
  244. sizeof(DWORD),
  245. SESSION_TIMEOUTS_OFFSET
  246. },
  247. { sizeof(PERF_COUNTER_DEFINITION),
  248. 428,
  249. 0,
  250. 429,
  251. 0,
  252. 0,
  253. PERF_DETAIL_ADVANCED,
  254. PERF_COUNTER_RAWCOUNT,
  255. sizeof(DWORD),
  256. CANCELLED_CONNECTIONS_OFFSET
  257. },
  258. { sizeof(PERF_COUNTER_DEFINITION),
  259. 430,
  260. 0,
  261. 431,
  262. 0,
  263. 0,
  264. PERF_DETAIL_ADVANCED,
  265. PERF_COUNTER_RAWCOUNT,
  266. sizeof(DWORD),
  267. REMOTE_RESOURCE_FAILURES_OFFSET
  268. },
  269. { sizeof(PERF_COUNTER_DEFINITION),
  270. 432,
  271. 0,
  272. 433,
  273. 0,
  274. 0,
  275. PERF_DETAIL_ADVANCED,
  276. PERF_COUNTER_RAWCOUNT,
  277. sizeof(DWORD),
  278. LOCAL_RESOURCE_FAILURES_OFFSET
  279. },
  280. { sizeof(PERF_COUNTER_DEFINITION),
  281. 434,
  282. 0,
  283. 435,
  284. 0,
  285. 0,
  286. PERF_DETAIL_ADVANCED,
  287. PERF_COUNTER_RAWCOUNT,
  288. sizeof(DWORD),
  289. NOT_FOUND_FAILURES_OFFSET
  290. },
  291. { sizeof(PERF_COUNTER_DEFINITION),
  292. 436,
  293. 0,
  294. 437,
  295. 0,
  296. 0,
  297. PERF_DETAIL_ADVANCED,
  298. PERF_COUNTER_RAWCOUNT,
  299. sizeof(DWORD),
  300. NO_LISTEN_FAILURES_OFFSET
  301. },
  302. { sizeof(PERF_COUNTER_DEFINITION),
  303. 442,
  304. 0,
  305. 443,
  306. 0,
  307. -1,
  308. PERF_DETAIL_ADVANCED,
  309. PERF_COUNTER_COUNTER,
  310. sizeof(DWORD),
  311. DATAGRAMS_SENT_OFFSET
  312. },
  313. { sizeof(PERF_COUNTER_DEFINITION),
  314. 444,
  315. 0,
  316. 445,
  317. 0,
  318. -4,
  319. PERF_DETAIL_ADVANCED,
  320. PERF_COUNTER_BULK_COUNT,
  321. sizeof(LARGE_INTEGER),
  322. DATAGRAM_BYTES_SENT_OFFSET
  323. },
  324. { sizeof(PERF_COUNTER_DEFINITION),
  325. 446,
  326. 0,
  327. 447,
  328. 0,
  329. -1,
  330. PERF_DETAIL_ADVANCED,
  331. PERF_COUNTER_COUNTER,
  332. sizeof(DWORD),
  333. DATAGRAMS_RECEIVED_OFFSET
  334. },
  335. { sizeof(PERF_COUNTER_DEFINITION),
  336. 448,
  337. 0,
  338. 449,
  339. 0,
  340. -4,
  341. PERF_DETAIL_ADVANCED,
  342. PERF_COUNTER_BULK_COUNT,
  343. sizeof(LARGE_INTEGER),
  344. DATAGRAM_BYTES_RECEIVED_OFFSET
  345. },
  346. { sizeof(PERF_COUNTER_DEFINITION),
  347. 452,
  348. 0,
  349. 453,
  350. 0,
  351. -1,
  352. PERF_DETAIL_ADVANCED,
  353. PERF_COUNTER_COUNTER,
  354. sizeof(DWORD),
  355. PACKETS_SENT_OFFSET
  356. },
  357. { sizeof(PERF_COUNTER_DEFINITION),
  358. 266,
  359. 0,
  360. 455,
  361. 0,
  362. -1,
  363. PERF_DETAIL_EXPERT,
  364. PERF_COUNTER_COUNTER,
  365. sizeof(DWORD),
  366. PACKETS_RECEIVED_OFFSET
  367. },
  368. { sizeof(PERF_COUNTER_DEFINITION),
  369. 460,
  370. 0,
  371. 461,
  372. 0,
  373. -1,
  374. PERF_DETAIL_ADVANCED,
  375. PERF_COUNTER_COUNTER,
  376. sizeof(DWORD),
  377. FRAMES_SENT_OFFSET
  378. },
  379. { sizeof(PERF_COUNTER_DEFINITION),
  380. 462,
  381. 0,
  382. 463,
  383. 0,
  384. -4,
  385. PERF_DETAIL_ADVANCED,
  386. PERF_COUNTER_BULK_COUNT,
  387. sizeof(LARGE_INTEGER),
  388. FRAME_BYTES_SENT_OFFSET
  389. },
  390. { sizeof(PERF_COUNTER_DEFINITION),
  391. 464,
  392. 0,
  393. 465,
  394. 0,
  395. -1,
  396. PERF_DETAIL_ADVANCED,
  397. PERF_COUNTER_COUNTER,
  398. sizeof(DWORD),
  399. FRAMES_RECEIVED_OFFSET
  400. },
  401. { sizeof(PERF_COUNTER_DEFINITION),
  402. 466,
  403. 0,
  404. 467,
  405. 0,
  406. -4,
  407. PERF_DETAIL_ADVANCED,
  408. PERF_COUNTER_BULK_COUNT,
  409. sizeof(LARGE_INTEGER),
  410. FRAME_BYTES_RECEIVED_OFFSET
  411. },
  412. { sizeof(PERF_COUNTER_DEFINITION),
  413. 468,
  414. 0,
  415. 469,
  416. 0,
  417. -1,
  418. PERF_DETAIL_EXPERT,
  419. PERF_COUNTER_COUNTER,
  420. sizeof(DWORD),
  421. FRAMES_RESENT_OFFSET
  422. },
  423. { sizeof(PERF_COUNTER_DEFINITION),
  424. 470,
  425. 0,
  426. 471,
  427. 0,
  428. -4,
  429. PERF_DETAIL_WIZARD,
  430. PERF_COUNTER_BULK_COUNT,
  431. sizeof(LARGE_INTEGER),
  432. FRAME_BYTES_RESENT_OFFSET
  433. },
  434. { sizeof(PERF_COUNTER_DEFINITION),
  435. 472,
  436. 0,
  437. 473,
  438. 0,
  439. -1,
  440. PERF_DETAIL_EXPERT,
  441. PERF_COUNTER_COUNTER,
  442. sizeof(DWORD),
  443. FRAMES_REJECTED_OFFSET
  444. },
  445. { sizeof(PERF_COUNTER_DEFINITION),
  446. 474,
  447. 0,
  448. 475,
  449. 0,
  450. -4,
  451. PERF_DETAIL_EXPERT,
  452. PERF_COUNTER_BULK_COUNT,
  453. sizeof(LARGE_INTEGER),
  454. FRAME_BYTES_REJECTED_OFFSET
  455. },
  456. { sizeof(PERF_COUNTER_DEFINITION),
  457. 476,
  458. 0,
  459. 477,
  460. 0,
  461. 0,
  462. PERF_DETAIL_WIZARD,
  463. PERF_COUNTER_RAWCOUNT,
  464. sizeof(DWORD),
  465. RESPONSE_TIMER_EXPIRATIONS_OFFSET
  466. },
  467. { sizeof(PERF_COUNTER_DEFINITION),
  468. 478,
  469. 0,
  470. 479,
  471. 0,
  472. 0,
  473. PERF_DETAIL_ADVANCED,
  474. PERF_COUNTER_RAWCOUNT,
  475. sizeof(DWORD),
  476. ACK_TIMER_EXPIRATIONS_OFFSET
  477. },
  478. { sizeof(PERF_COUNTER_DEFINITION),
  479. 480,
  480. 0,
  481. 481,
  482. 0,
  483. 0,
  484. PERF_DETAIL_ADVANCED,
  485. PERF_COUNTER_RAWCOUNT,
  486. sizeof(DWORD),
  487. MAXIMUM_SEND_WINDOW_OFFSET
  488. },
  489. { sizeof(PERF_COUNTER_DEFINITION),
  490. 482,
  491. 0,
  492. 483,
  493. 0,
  494. 0,
  495. PERF_DETAIL_ADVANCED,
  496. PERF_COUNTER_RAWCOUNT,
  497. sizeof(DWORD),
  498. AVERAGE_SEND_WINDOW_OFFSET
  499. },
  500. { sizeof(PERF_COUNTER_DEFINITION),
  501. 484,
  502. 0,
  503. 485,
  504. 0,
  505. -1,
  506. PERF_DETAIL_ADVANCED,
  507. PERF_COUNTER_COUNTER,
  508. sizeof(DWORD),
  509. PIGGYBACK_ACK_QUEUED_OFFSET
  510. },
  511. { sizeof(PERF_COUNTER_DEFINITION),
  512. 486,
  513. 0,
  514. 487,
  515. 0,
  516. -1,
  517. PERF_DETAIL_ADVANCED,
  518. PERF_COUNTER_RAWCOUNT,
  519. sizeof(DWORD),
  520. PIGGYBACK_ACK_TIMEOUTS_OFFSET
  521. }
  522. };
  523. 
  524.