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.

967 lines
19 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. datatcp.c
  5. Abstract:
  6. The file containing the constant data structures
  7. for the Performance Monitor data for the TCP/IP
  8. Extensible Objects (Network Interface, IP, ICMP, TCP
  9. and UDP).
  10. This file contains a set of constant data structures which are
  11. currently defined for the TCP/IP Extensible Objects. This is an
  12. example of how other such objects could be defined.
  13. Created:
  14. Christos Tsollis 08/28/92
  15. Revision History:
  16. --*/
  17. //
  18. //
  19. // Include Files
  20. //
  21. #include <nt.h>
  22. #include <ntrtl.h>
  23. #include <nturtl.h>
  24. #include <windows.h>
  25. #include <winperf.h>
  26. #include "datatcp.h"
  27. //
  28. // Constant structure initializations
  29. //
  30. NET_INTERFACE_DATA_DEFINITION NetInterfaceDataDefinition = {
  31. { sizeof(NET_INTERFACE_DATA_DEFINITION) + SIZE_OF_IF_DATA,
  32. sizeof(NET_INTERFACE_DATA_DEFINITION),
  33. sizeof(PERF_OBJECT_TYPE),
  34. 510,
  35. 0,
  36. 511,
  37. 0,
  38. PERF_DETAIL_ADVANCED,
  39. (sizeof(NET_INTERFACE_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  40. sizeof(PERF_COUNTER_DEFINITION),
  41. 0, // default is Byte Total/sec
  42. 0,
  43. 0
  44. },
  45. { sizeof(PERF_COUNTER_DEFINITION),
  46. 388,
  47. 0,
  48. 513,
  49. 0,
  50. -4,
  51. PERF_DETAIL_ADVANCED,
  52. PERF_COUNTER_BULK_COUNT,
  53. sizeof(LONGLONG),
  54. IF_OCTETS_OFFSET
  55. },
  56. { sizeof(PERF_COUNTER_DEFINITION),
  57. 400,
  58. 0,
  59. 515,
  60. 0,
  61. -1,
  62. PERF_DETAIL_ADVANCED,
  63. PERF_COUNTER_COUNTER,
  64. sizeof(DWORD),
  65. IF_PACKETS_OFFSET
  66. },
  67. { sizeof(PERF_COUNTER_DEFINITION),
  68. 266,
  69. 0,
  70. 517,
  71. 0,
  72. -1,
  73. PERF_DETAIL_ADVANCED,
  74. PERF_COUNTER_COUNTER,
  75. sizeof(DWORD),
  76. IF_INPKTS_OFFSET
  77. },
  78. { sizeof(PERF_COUNTER_DEFINITION),
  79. 452,
  80. 0,
  81. 519,
  82. 0,
  83. -1,
  84. PERF_DETAIL_ADVANCED,
  85. PERF_COUNTER_COUNTER,
  86. sizeof(DWORD),
  87. IF_OUTPKTS_OFFSET
  88. },
  89. { sizeof(PERF_COUNTER_DEFINITION),
  90. 520,
  91. 0,
  92. 521,
  93. 0,
  94. -6,
  95. PERF_DETAIL_ADVANCED,
  96. PERF_COUNTER_RAWCOUNT,
  97. sizeof(DWORD),
  98. IF_SPEED_OFFSET
  99. },
  100. { sizeof(PERF_COUNTER_DEFINITION),
  101. 264,
  102. 0,
  103. 523,
  104. 0,
  105. -4,
  106. PERF_DETAIL_ADVANCED,
  107. PERF_COUNTER_COUNTER,
  108. sizeof(DWORD),
  109. IF_INOCTETS_OFFSET
  110. },
  111. { sizeof(PERF_COUNTER_DEFINITION),
  112. 524,
  113. 0,
  114. 525,
  115. 0,
  116. -1,
  117. PERF_DETAIL_EXPERT,
  118. PERF_COUNTER_COUNTER,
  119. sizeof(DWORD),
  120. IF_INUCASTPKTS_OFFSET
  121. },
  122. { sizeof(PERF_COUNTER_DEFINITION),
  123. 526,
  124. 0,
  125. 527,
  126. 0,
  127. -1,
  128. PERF_DETAIL_EXPERT,
  129. PERF_COUNTER_COUNTER,
  130. sizeof(DWORD),
  131. IF_INNUCASTPKTS_OFFSET
  132. },
  133. { sizeof(PERF_COUNTER_DEFINITION),
  134. 528,
  135. 0,
  136. 529,
  137. 0,
  138. 0,
  139. PERF_DETAIL_ADVANCED,
  140. PERF_COUNTER_RAWCOUNT,
  141. sizeof(DWORD),
  142. IF_INDISCARDS_OFFSET
  143. },
  144. { sizeof(PERF_COUNTER_DEFINITION),
  145. 530,
  146. 0,
  147. 531,
  148. 0,
  149. 0,
  150. PERF_DETAIL_ADVANCED,
  151. PERF_COUNTER_RAWCOUNT,
  152. sizeof(DWORD),
  153. IF_INERRORS_OFFSET
  154. },
  155. { sizeof(PERF_COUNTER_DEFINITION),
  156. 532,
  157. 0,
  158. 533,
  159. 0,
  160. 0,
  161. PERF_DETAIL_ADVANCED,
  162. PERF_COUNTER_RAWCOUNT,
  163. sizeof(DWORD),
  164. IF_INUNKNOWNPROTOS_OFFSET
  165. },
  166. { sizeof(PERF_COUNTER_DEFINITION),
  167. 506,
  168. 0,
  169. 535,
  170. 0,
  171. -4,
  172. PERF_DETAIL_ADVANCED,
  173. PERF_COUNTER_COUNTER,
  174. sizeof(DWORD),
  175. IF_OUTOCTETS_OFFSET
  176. },
  177. { sizeof(PERF_COUNTER_DEFINITION),
  178. 536,
  179. 0,
  180. 537,
  181. 0,
  182. -1,
  183. PERF_DETAIL_EXPERT,
  184. PERF_COUNTER_COUNTER,
  185. sizeof(DWORD),
  186. IF_OUTUCASTPKTS_OFFSET
  187. },
  188. { sizeof(PERF_COUNTER_DEFINITION),
  189. 538,
  190. 0,
  191. 539,
  192. 0,
  193. -1,
  194. PERF_DETAIL_EXPERT,
  195. PERF_COUNTER_COUNTER,
  196. sizeof(DWORD),
  197. IF_OUTNUCASTPKTS_OFFSET
  198. },
  199. { sizeof(PERF_COUNTER_DEFINITION),
  200. 540,
  201. 0,
  202. 541,
  203. 0,
  204. 0,
  205. PERF_DETAIL_ADVANCED,
  206. PERF_COUNTER_RAWCOUNT,
  207. sizeof(DWORD),
  208. IF_OUTDISCARDS_OFFSET
  209. },
  210. { sizeof(PERF_COUNTER_DEFINITION),
  211. 542,
  212. 0,
  213. 543,
  214. 0,
  215. 0,
  216. PERF_DETAIL_ADVANCED,
  217. PERF_COUNTER_RAWCOUNT,
  218. sizeof(DWORD),
  219. IF_OUTERRORS_OFFSET
  220. },
  221. { sizeof(PERF_COUNTER_DEFINITION),
  222. 544,
  223. 0,
  224. 545,
  225. 0,
  226. 0,
  227. PERF_DETAIL_ADVANCED,
  228. PERF_COUNTER_RAWCOUNT,
  229. sizeof(DWORD),
  230. IF_OUTQLEN_OFFSET
  231. }
  232. };
  233. IP_DATA_DEFINITION IpDataDefinition = {
  234. { sizeof(IP_DATA_DEFINITION) + SIZE_OF_IP_DATA,
  235. sizeof(IP_DATA_DEFINITION),
  236. sizeof(PERF_OBJECT_TYPE),
  237. 546,
  238. 0,
  239. 547,
  240. 0,
  241. PERF_DETAIL_ADVANCED,
  242. (sizeof(IP_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  243. sizeof(PERF_COUNTER_DEFINITION),
  244. 0,
  245. -1,
  246. 0
  247. },
  248. { sizeof(PERF_COUNTER_DEFINITION),
  249. 438,
  250. 0,
  251. 549,
  252. 0,
  253. -1,
  254. PERF_DETAIL_ADVANCED,
  255. PERF_COUNTER_COUNTER,
  256. sizeof(DWORD),
  257. IP_DATAGRAMS_OFFSET
  258. },
  259. { sizeof(PERF_COUNTER_DEFINITION),
  260. 446,
  261. 0,
  262. 551,
  263. 0,
  264. -1,
  265. PERF_DETAIL_ADVANCED,
  266. PERF_COUNTER_COUNTER,
  267. sizeof(DWORD),
  268. IP_INRECEIVES_OFFSET
  269. },
  270. { sizeof(PERF_COUNTER_DEFINITION),
  271. 552,
  272. 0,
  273. 553,
  274. 0,
  275. 0,
  276. PERF_DETAIL_ADVANCED,
  277. PERF_COUNTER_RAWCOUNT,
  278. sizeof(DWORD),
  279. IP_INHDRERRORS_OFFSET
  280. },
  281. { sizeof(PERF_COUNTER_DEFINITION),
  282. 554,
  283. 0,
  284. 555,
  285. 0,
  286. 0,
  287. PERF_DETAIL_ADVANCED,
  288. PERF_COUNTER_RAWCOUNT,
  289. sizeof(DWORD),
  290. IP_INADDRERRORS_OFFSET
  291. },
  292. { sizeof(PERF_COUNTER_DEFINITION),
  293. 556,
  294. 0,
  295. 557,
  296. 0,
  297. -1,
  298. PERF_DETAIL_ADVANCED,
  299. PERF_COUNTER_COUNTER,
  300. sizeof(DWORD),
  301. IP_FORWDATAGRAMS_OFFSET
  302. },
  303. { sizeof(PERF_COUNTER_DEFINITION),
  304. 558,
  305. 0,
  306. 559,
  307. 0,
  308. 0,
  309. PERF_DETAIL_ADVANCED,
  310. PERF_COUNTER_RAWCOUNT,
  311. sizeof(DWORD),
  312. IP_INUNKNOWNPROTOS_OFFSET
  313. },
  314. { sizeof(PERF_COUNTER_DEFINITION),
  315. 560,
  316. 0,
  317. 561,
  318. 0,
  319. 0,
  320. PERF_DETAIL_ADVANCED,
  321. PERF_COUNTER_RAWCOUNT,
  322. sizeof(DWORD),
  323. IP_INDISCARDS_OFFSET
  324. },
  325. { sizeof(PERF_COUNTER_DEFINITION),
  326. 562,
  327. 0,
  328. 563,
  329. 0,
  330. -1,
  331. PERF_DETAIL_ADVANCED,
  332. PERF_COUNTER_COUNTER,
  333. sizeof(DWORD),
  334. IP_INDELIVERS_OFFSET
  335. },
  336. { sizeof(PERF_COUNTER_DEFINITION),
  337. 442,
  338. 0,
  339. 565,
  340. 0,
  341. -1,
  342. PERF_DETAIL_ADVANCED,
  343. PERF_COUNTER_COUNTER,
  344. sizeof(DWORD),
  345. IP_OUTREQUESTS_OFFSET
  346. },
  347. { sizeof(PERF_COUNTER_DEFINITION),
  348. 566,
  349. 0,
  350. 567,
  351. 0,
  352. 0,
  353. PERF_DETAIL_ADVANCED,
  354. PERF_COUNTER_RAWCOUNT,
  355. sizeof(DWORD),
  356. IP_OUTDISCARDS_OFFSET
  357. },
  358. { sizeof(PERF_COUNTER_DEFINITION),
  359. 568,
  360. 0,
  361. 569,
  362. 0,
  363. 0,
  364. PERF_DETAIL_ADVANCED,
  365. PERF_COUNTER_RAWCOUNT,
  366. sizeof(DWORD),
  367. IP_OUTNOROUTES_OFFSET
  368. },
  369. { sizeof(PERF_COUNTER_DEFINITION),
  370. 570,
  371. 0,
  372. 571,
  373. 0,
  374. -1,
  375. PERF_DETAIL_ADVANCED,
  376. PERF_COUNTER_COUNTER,
  377. sizeof(DWORD),
  378. IP_REASMREQDS_OFFSET
  379. },
  380. { sizeof(PERF_COUNTER_DEFINITION),
  381. 572,
  382. 0,
  383. 573,
  384. 0,
  385. -1,
  386. PERF_DETAIL_ADVANCED,
  387. PERF_COUNTER_COUNTER,
  388. sizeof(DWORD),
  389. IP_REASMOKS_OFFSET
  390. },
  391. { sizeof(PERF_COUNTER_DEFINITION),
  392. 574,
  393. 0,
  394. 575,
  395. 0,
  396. 0,
  397. PERF_DETAIL_ADVANCED,
  398. PERF_COUNTER_RAWCOUNT,
  399. sizeof(DWORD),
  400. IP_REASMFAILS_OFFSET
  401. },
  402. { sizeof(PERF_COUNTER_DEFINITION),
  403. 576,
  404. 0,
  405. 577,
  406. 0,
  407. -1,
  408. PERF_DETAIL_ADVANCED,
  409. PERF_COUNTER_COUNTER,
  410. sizeof(DWORD),
  411. IP_FRAGOKS_OFFSET
  412. },
  413. { sizeof(PERF_COUNTER_DEFINITION),
  414. 578,
  415. 0,
  416. 579,
  417. 0,
  418. 0,
  419. PERF_DETAIL_ADVANCED,
  420. PERF_COUNTER_RAWCOUNT,
  421. sizeof(DWORD),
  422. IP_FRAGFAILS_OFFSET
  423. },
  424. { sizeof(PERF_COUNTER_DEFINITION),
  425. 580,
  426. 0,
  427. 581,
  428. 0,
  429. -1,
  430. PERF_DETAIL_ADVANCED,
  431. PERF_COUNTER_COUNTER,
  432. sizeof(DWORD),
  433. IP_FRAGCREATES_OFFSET
  434. }
  435. };
  436. ICMP_DATA_DEFINITION IcmpDataDefinition = {
  437. { sizeof(ICMP_DATA_DEFINITION) + SIZE_OF_ICMP_DATA,
  438. sizeof(ICMP_DATA_DEFINITION),
  439. sizeof(PERF_OBJECT_TYPE),
  440. 582,
  441. 0,
  442. 583,
  443. 0,
  444. PERF_DETAIL_ADVANCED,
  445. (sizeof(ICMP_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  446. sizeof(PERF_COUNTER_DEFINITION),
  447. 0,
  448. -1,
  449. 0
  450. },
  451. { sizeof(PERF_COUNTER_DEFINITION),
  452. 584,
  453. 0,
  454. 585,
  455. 0,
  456. -1,
  457. PERF_DETAIL_ADVANCED,
  458. PERF_COUNTER_COUNTER,
  459. sizeof(DWORD),
  460. ICMP_MESSAGES_OFFSET
  461. },
  462. { sizeof(PERF_COUNTER_DEFINITION),
  463. 586,
  464. 0,
  465. 587,
  466. 0,
  467. -1,
  468. PERF_DETAIL_ADVANCED,
  469. PERF_COUNTER_COUNTER,
  470. sizeof(DWORD),
  471. ICMP_INMSGS_OFFSET
  472. },
  473. { sizeof(PERF_COUNTER_DEFINITION),
  474. 588,
  475. 0,
  476. 589,
  477. 0,
  478. 0,
  479. PERF_DETAIL_ADVANCED,
  480. PERF_COUNTER_RAWCOUNT,
  481. sizeof(DWORD),
  482. ICMP_INERRORS_OFFSET
  483. },
  484. { sizeof(PERF_COUNTER_DEFINITION),
  485. 590,
  486. 0,
  487. 591,
  488. 0,
  489. 0,
  490. PERF_DETAIL_ADVANCED,
  491. PERF_COUNTER_RAWCOUNT,
  492. sizeof(DWORD),
  493. ICMP_INDESTUNREACHS_OFFSET
  494. },
  495. { sizeof(PERF_COUNTER_DEFINITION),
  496. 592,
  497. 0,
  498. 593,
  499. 0,
  500. 0,
  501. PERF_DETAIL_ADVANCED,
  502. PERF_COUNTER_RAWCOUNT,
  503. sizeof(DWORD),
  504. ICMP_INTIMEEXCDS_OFFSET
  505. },
  506. { sizeof(PERF_COUNTER_DEFINITION),
  507. 594,
  508. 0,
  509. 595,
  510. 0,
  511. 0,
  512. PERF_DETAIL_EXPERT,
  513. PERF_COUNTER_RAWCOUNT,
  514. sizeof(DWORD),
  515. ICMP_INPARMPROBS_OFFSET
  516. },
  517. { sizeof(PERF_COUNTER_DEFINITION),
  518. 596,
  519. 0,
  520. 597,
  521. 0,
  522. 0,
  523. PERF_DETAIL_WIZARD,
  524. PERF_COUNTER_RAWCOUNT,
  525. sizeof(DWORD),
  526. ICMP_INSRCQUENCHS_OFFSET
  527. },
  528. { sizeof(PERF_COUNTER_DEFINITION),
  529. 598,
  530. 0,
  531. 599,
  532. 0,
  533. -1,
  534. PERF_DETAIL_ADVANCED,
  535. PERF_COUNTER_COUNTER,
  536. sizeof(DWORD),
  537. ICMP_INREDIRECTS_OFFSET
  538. },
  539. { sizeof(PERF_COUNTER_DEFINITION),
  540. 600,
  541. 0,
  542. 601,
  543. 0,
  544. -1,
  545. PERF_DETAIL_EXPERT,
  546. PERF_COUNTER_COUNTER,
  547. sizeof(DWORD),
  548. ICMP_INECHOS_OFFSET
  549. },
  550. { sizeof(PERF_COUNTER_DEFINITION),
  551. 602,
  552. 0,
  553. 603,
  554. 0,
  555. -1,
  556. PERF_DETAIL_EXPERT,
  557. PERF_COUNTER_COUNTER,
  558. sizeof(DWORD),
  559. ICMP_INECHOREPS_OFFSET
  560. },
  561. { sizeof(PERF_COUNTER_DEFINITION),
  562. 604,
  563. 0,
  564. 605,
  565. 0,
  566. -1,
  567. PERF_DETAIL_EXPERT,
  568. PERF_COUNTER_COUNTER,
  569. sizeof(DWORD),
  570. ICMP_INTIMESTAMPS_OFFSET
  571. },
  572. { sizeof(PERF_COUNTER_DEFINITION),
  573. 606,
  574. 0,
  575. 607,
  576. 0,
  577. -1,
  578. PERF_DETAIL_EXPERT,
  579. PERF_COUNTER_COUNTER,
  580. sizeof(DWORD),
  581. ICMP_INTIMESTAMPREPS_OFFSET
  582. },
  583. { sizeof(PERF_COUNTER_DEFINITION),
  584. 608,
  585. 0,
  586. 609,
  587. 0,
  588. 0,
  589. PERF_DETAIL_EXPERT,
  590. PERF_COUNTER_RAWCOUNT,
  591. sizeof(DWORD),
  592. ICMP_INADDRMASKS_OFFSET
  593. },
  594. { sizeof(PERF_COUNTER_DEFINITION),
  595. 610,
  596. 0,
  597. 611,
  598. 0,
  599. 0,
  600. PERF_DETAIL_EXPERT,
  601. PERF_COUNTER_RAWCOUNT,
  602. sizeof(DWORD),
  603. ICMP_INADDRMASKREPS_OFFSET
  604. },
  605. { sizeof(PERF_COUNTER_DEFINITION),
  606. 612,
  607. 0,
  608. 613,
  609. 0,
  610. -1,
  611. PERF_DETAIL_ADVANCED,
  612. PERF_COUNTER_COUNTER,
  613. sizeof(DWORD),
  614. ICMP_OUTMSGS_OFFSET
  615. },
  616. { sizeof(PERF_COUNTER_DEFINITION),
  617. 614,
  618. 0,
  619. 615,
  620. 0,
  621. 0,
  622. PERF_DETAIL_ADVANCED,
  623. PERF_COUNTER_RAWCOUNT,
  624. sizeof(DWORD),
  625. ICMP_OUTERRORS_OFFSET
  626. },
  627. { sizeof(PERF_COUNTER_DEFINITION),
  628. 616,
  629. 0,
  630. 617,
  631. 0,
  632. 0,
  633. PERF_DETAIL_ADVANCED,
  634. PERF_COUNTER_RAWCOUNT,
  635. sizeof(DWORD),
  636. ICMP_OUTDESTUNREACHS_OFFSET
  637. },
  638. { sizeof(PERF_COUNTER_DEFINITION),
  639. 618,
  640. 0,
  641. 619,
  642. 0,
  643. 0,
  644. PERF_DETAIL_ADVANCED,
  645. PERF_COUNTER_RAWCOUNT,
  646. sizeof(DWORD),
  647. ICMP_OUTTIMEEXCDS_OFFSET
  648. },
  649. { sizeof(PERF_COUNTER_DEFINITION),
  650. 620,
  651. 0,
  652. 621,
  653. 0,
  654. 0,
  655. PERF_DETAIL_EXPERT,
  656. PERF_COUNTER_RAWCOUNT,
  657. sizeof(DWORD),
  658. ICMP_OUTPARMPROBS_OFFSET
  659. },
  660. { sizeof(PERF_COUNTER_DEFINITION),
  661. 622,
  662. 0,
  663. 623,
  664. 0,
  665. 0,
  666. PERF_DETAIL_WIZARD,
  667. PERF_COUNTER_RAWCOUNT,
  668. sizeof(DWORD),
  669. ICMP_OUTSRCQUENCHS_OFFSET
  670. },
  671. { sizeof(PERF_COUNTER_DEFINITION),
  672. 624,
  673. 0,
  674. 625,
  675. 0,
  676. -1,
  677. PERF_DETAIL_ADVANCED,
  678. PERF_COUNTER_COUNTER,
  679. sizeof(DWORD),
  680. ICMP_OUTREDIRECTS_OFFSET
  681. },
  682. { sizeof(PERF_COUNTER_DEFINITION),
  683. 626,
  684. 0,
  685. 627,
  686. 0,
  687. -1,
  688. PERF_DETAIL_EXPERT,
  689. PERF_COUNTER_COUNTER,
  690. sizeof(DWORD),
  691. ICMP_OUTECHOS_OFFSET
  692. },
  693. { sizeof(PERF_COUNTER_DEFINITION),
  694. 628,
  695. 0,
  696. 629,
  697. 0,
  698. -1,
  699. PERF_DETAIL_EXPERT,
  700. PERF_COUNTER_COUNTER,
  701. sizeof(DWORD),
  702. ICMP_OUTECHOREPS_OFFSET
  703. },
  704. { sizeof(PERF_COUNTER_DEFINITION),
  705. 630,
  706. 0,
  707. 631,
  708. 0,
  709. -1,
  710. PERF_DETAIL_EXPERT,
  711. PERF_COUNTER_COUNTER,
  712. sizeof(DWORD),
  713. ICMP_OUTTIMESTAMPS_OFFSET
  714. },
  715. { sizeof(PERF_COUNTER_DEFINITION),
  716. 632,
  717. 0,
  718. 633,
  719. 0,
  720. -1,
  721. PERF_DETAIL_EXPERT,
  722. PERF_COUNTER_COUNTER,
  723. sizeof(DWORD),
  724. ICMP_OUTTIMESTAMPREPS_OFFSET
  725. },
  726. { sizeof(PERF_COUNTER_DEFINITION),
  727. 634,
  728. 0,
  729. 635,
  730. 0,
  731. 0,
  732. PERF_DETAIL_EXPERT,
  733. PERF_COUNTER_RAWCOUNT,
  734. sizeof(DWORD),
  735. ICMP_OUTADDRMASKS_OFFSET
  736. },
  737. { sizeof(PERF_COUNTER_DEFINITION),
  738. 636,
  739. 0,
  740. 637,
  741. 0,
  742. 0,
  743. PERF_DETAIL_EXPERT,
  744. PERF_COUNTER_RAWCOUNT,
  745. sizeof(DWORD),
  746. ICMP_OUTADDRMASKREPS_OFFSET
  747. }
  748. };
  749. TCP_DATA_DEFINITION TcpDataDefinition = {
  750. { sizeof(TCP_DATA_DEFINITION) + SIZE_OF_TCP_DATA,
  751. sizeof(TCP_DATA_DEFINITION),
  752. sizeof(PERF_OBJECT_TYPE),
  753. 638,
  754. 0,
  755. 639,
  756. 0,
  757. PERF_DETAIL_ADVANCED,
  758. (sizeof(TCP_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  759. sizeof(PERF_COUNTER_DEFINITION),
  760. 0,
  761. -1,
  762. 0
  763. },
  764. { sizeof(PERF_COUNTER_DEFINITION),
  765. 640,
  766. 0,
  767. 641,
  768. 0,
  769. -1,
  770. PERF_DETAIL_ADVANCED,
  771. PERF_COUNTER_COUNTER,
  772. sizeof(DWORD),
  773. TCP_SEGMENTS_OFFSET
  774. },
  775. { sizeof(PERF_COUNTER_DEFINITION),
  776. 642,
  777. 0,
  778. 643,
  779. 0,
  780. 0,
  781. PERF_DETAIL_ADVANCED,
  782. PERF_COUNTER_RAWCOUNT,
  783. sizeof(DWORD),
  784. TCP_CURRESTAB_OFFSET
  785. },
  786. { sizeof(PERF_COUNTER_DEFINITION),
  787. 644,
  788. 0,
  789. 645,
  790. 0,
  791. 0,
  792. PERF_DETAIL_ADVANCED,
  793. PERF_COUNTER_RAWCOUNT,
  794. sizeof(DWORD),
  795. TCP_ACTIVEOPENS_OFFSET
  796. },
  797. { sizeof(PERF_COUNTER_DEFINITION),
  798. 646,
  799. 0,
  800. 647,
  801. 0,
  802. 0,
  803. PERF_DETAIL_ADVANCED,
  804. PERF_COUNTER_RAWCOUNT,
  805. sizeof(DWORD),
  806. TCP_PASSIVEOPENS_OFFSET
  807. },
  808. { sizeof(PERF_COUNTER_DEFINITION),
  809. 648,
  810. 0,
  811. 649,
  812. 0,
  813. 0,
  814. PERF_DETAIL_ADVANCED,
  815. PERF_COUNTER_RAWCOUNT,
  816. sizeof(DWORD),
  817. TCP_ATTEMPTFAILS_OFFSET
  818. },
  819. { sizeof(PERF_COUNTER_DEFINITION),
  820. 650,
  821. 0,
  822. 651,
  823. 0,
  824. 0,
  825. PERF_DETAIL_ADVANCED,
  826. PERF_COUNTER_RAWCOUNT,
  827. sizeof(DWORD),
  828. TCP_ESTABRESETS_OFFSET
  829. },
  830. { sizeof(PERF_COUNTER_DEFINITION),
  831. 652,
  832. 0,
  833. 653,
  834. 0,
  835. -1,
  836. PERF_DETAIL_ADVANCED,
  837. PERF_COUNTER_COUNTER,
  838. sizeof(DWORD),
  839. TCP_INSEGS_OFFSET
  840. },
  841. { sizeof(PERF_COUNTER_DEFINITION),
  842. 654,
  843. 0,
  844. 655,
  845. 0,
  846. -1,
  847. PERF_DETAIL_ADVANCED,
  848. PERF_COUNTER_COUNTER,
  849. sizeof(DWORD),
  850. TCP_OUTSEGS_OFFSET
  851. },
  852. { sizeof(PERF_COUNTER_DEFINITION),
  853. 656,
  854. 0,
  855. 657,
  856. 0,
  857. -1,
  858. PERF_DETAIL_ADVANCED,
  859. PERF_COUNTER_COUNTER,
  860. sizeof(DWORD),
  861. TCP_RETRANSSEGS_OFFSET
  862. }
  863. };
  864. UDP_DATA_DEFINITION UdpDataDefinition = {
  865. { sizeof(UDP_DATA_DEFINITION) + SIZE_OF_UDP_DATA,
  866. sizeof(UDP_DATA_DEFINITION),
  867. sizeof(PERF_OBJECT_TYPE),
  868. 658,
  869. 0,
  870. 659,
  871. 0,
  872. PERF_DETAIL_ADVANCED,
  873. (sizeof(UDP_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  874. sizeof(PERF_COUNTER_DEFINITION),
  875. 0,
  876. -1,
  877. 0
  878. },
  879. { sizeof(PERF_COUNTER_DEFINITION),
  880. 438,
  881. 0,
  882. 661,
  883. 0,
  884. -1,
  885. PERF_DETAIL_ADVANCED,
  886. PERF_COUNTER_COUNTER,
  887. sizeof(DWORD),
  888. UDP_DATAGRAMS_OFFSET
  889. },
  890. { sizeof(PERF_COUNTER_DEFINITION),
  891. 446,
  892. 0,
  893. 663,
  894. 0,
  895. -1,
  896. PERF_DETAIL_ADVANCED,
  897. PERF_COUNTER_COUNTER,
  898. sizeof(DWORD),
  899. UDP_INDATAGRAMS_OFFSET
  900. },
  901. { sizeof(PERF_COUNTER_DEFINITION),
  902. 664,
  903. 0,
  904. 665,
  905. 0,
  906. -1,
  907. PERF_DETAIL_ADVANCED,
  908. PERF_COUNTER_COUNTER,
  909. sizeof(DWORD),
  910. UDP_NOPORTS_OFFSET
  911. },
  912. { sizeof(PERF_COUNTER_DEFINITION),
  913. 666,
  914. 0,
  915. 667,
  916. 0,
  917. 0,
  918. PERF_DETAIL_ADVANCED,
  919. PERF_COUNTER_RAWCOUNT,
  920. sizeof(DWORD),
  921. UDP_INERRORS_OFFSET
  922. },
  923. { sizeof(PERF_COUNTER_DEFINITION),
  924. 442,
  925. 0,
  926. 669,
  927. 0,
  928. -1,
  929. PERF_DETAIL_ADVANCED,
  930. PERF_COUNTER_COUNTER,
  931. sizeof(DWORD),
  932. UDP_OUTDATAGRAMS_OFFSET
  933. }
  934. };