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.

900 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. dataatk.c
  5. Abstract:
  6. a file containing the constant data structures
  7. for the Performance Monitor data for the Appletalk
  8. Extensible Objects.
  9. This file contains a set of constant data structures which are
  10. currently defined for the Appletalk 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. Sue Adams 02/23/94 - Hard code the Counter and Help indices as these are
  16. now defined values in the base NT system.
  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 "dataatk.h"
  27. //
  28. // Constant structure initializations defined in dataatk.h
  29. //
  30. ATK_DATA_DEFINITION AtkDataDefinition = {
  31. {
  32. // TotalByteLength
  33. sizeof(ATK_DATA_DEFINITION) + SIZE_ATK_PERFORMANCE_DATA,
  34. // DefinitionLength
  35. sizeof(ATK_DATA_DEFINITION),
  36. // HeaderLength
  37. sizeof(PERF_OBJECT_TYPE),
  38. // ObjectNameTitleIndex
  39. 1050,
  40. // ObjectNameTitle
  41. 0,
  42. // ObjectHelpTitleIndex
  43. 1051,
  44. // ObjectHelpTitle
  45. 0,
  46. // DetailLevel
  47. PERF_DETAIL_ADVANCED,
  48. // NumCounters
  49. (sizeof(ATK_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE)) / sizeof(PERF_COUNTER_DEFINITION),
  50. // Defaultcounter
  51. 0,
  52. // NumInstances
  53. 0,
  54. // CodePage
  55. 0,
  56. // PerfTime
  57. {0,0},
  58. // PerfFreq
  59. {0,0}
  60. },
  61. {
  62. // ByteLength
  63. sizeof(PERF_COUNTER_DEFINITION),
  64. // CounterNameTitleIndex
  65. 1052,
  66. // CounterNameTitle
  67. 0,
  68. // CounterHelpTitleIndex
  69. 1053,
  70. // CounterHelpTitle
  71. 0,
  72. // DefaultScale
  73. -1,
  74. // DetailLevel
  75. PERF_DETAIL_NOVICE,
  76. // CounterType
  77. PERF_COUNTER_COUNTER,
  78. // CounterSize
  79. sizeof(DWORD),
  80. // CounterOffset
  81. NUM_PKTS_IN_OFFSET
  82. },
  83. {
  84. // ByteLength
  85. sizeof(PERF_COUNTER_DEFINITION),
  86. // CounterNameTitleIndex
  87. 1054,
  88. // CounterNameTitle
  89. 0,
  90. // CounterHelpTitleIndex
  91. 1055,
  92. // CounterHelpTitle
  93. 0,
  94. // DefaultScale
  95. -1,
  96. // DetailLevel
  97. PERF_DETAIL_NOVICE,
  98. // CounterType
  99. PERF_COUNTER_COUNTER,
  100. // CounterSize
  101. sizeof(DWORD),
  102. // CounterOffset
  103. NUM_PKTS_OUT_OFFSET
  104. },
  105. {
  106. // ByteLength
  107. sizeof(PERF_COUNTER_DEFINITION),
  108. // CounterNameTitleIndex
  109. 1056,
  110. // CounterNameTitle
  111. 0,
  112. // CounterHelpTitleIndex
  113. 1057,
  114. // CounterHelpTitle
  115. 0,
  116. // DefaultScale
  117. -4,
  118. // DetailLevel
  119. PERF_DETAIL_NOVICE,
  120. // CounterType
  121. PERF_COUNTER_BULK_COUNT,
  122. // CounterSize
  123. sizeof(LARGE_INTEGER),
  124. // CounterOffset
  125. NUM_DATAIN_OFFSET
  126. },
  127. {
  128. // ByteLength
  129. sizeof(PERF_COUNTER_DEFINITION),
  130. // CounterNameTitleIndex
  131. 1058,
  132. // CounterNameTitle
  133. 0,
  134. // CounterHelpTitleIndex
  135. 1059,
  136. // CounterHelpTitle
  137. 0,
  138. // DefaultScale
  139. -4,
  140. // DetailLevel
  141. PERF_DETAIL_NOVICE,
  142. // CounterType
  143. PERF_COUNTER_BULK_COUNT,
  144. // CounterSize
  145. sizeof(LARGE_INTEGER),
  146. // CounterOffset
  147. NUM_DATAOUT_OFFSET
  148. },
  149. {
  150. // ByteLength
  151. sizeof(PERF_COUNTER_DEFINITION),
  152. // CounterNameTitleIndex
  153. 1060,
  154. // CounterNameTitle
  155. 0,
  156. // CounterHelpTitleIndex
  157. 1061,
  158. // CounterHelpTitle
  159. 0,
  160. // DefaultScale
  161. 0,
  162. // DetailLevel
  163. PERF_DETAIL_NOVICE,
  164. // CounterType
  165. PERF_AVERAGE_BULK,
  166. // CounterSize
  167. sizeof(LARGE_INTEGER),
  168. // CounterOffset
  169. DDP_PKT_PROCTIME_OFFSET
  170. },
  171. {
  172. // ByteLength
  173. sizeof(PERF_COUNTER_DEFINITION),
  174. // CounterNameTitleIndex
  175. 1062,
  176. // CounterNameTitle
  177. 0,
  178. // CounterHelpTitleIndex
  179. 1063,
  180. // CounterHelpTitle
  181. 0,
  182. // DefaultScale
  183. -1,
  184. // DetailLevel
  185. PERF_DETAIL_NOVICE,
  186. // CounterType
  187. PERF_COUNTER_COUNTER,
  188. // CounterSize
  189. sizeof(DWORD),
  190. // CounterOffset
  191. NUM_DDP_PKTS_IN_OFFSET
  192. },
  193. {
  194. // ByteLength
  195. sizeof(PERF_COUNTER_DEFINITION),
  196. // CounterNameTitleIndex
  197. 1064,
  198. // CounterNameTitle
  199. 0,
  200. // CounterHelpTitleIndex
  201. 1065,
  202. // CounterHelpTitle
  203. 0,
  204. // DefaultScale
  205. 0,
  206. // DetailLevel
  207. PERF_DETAIL_NOVICE,
  208. // CounterType
  209. PERF_AVERAGE_BULK,
  210. // CounterSize
  211. sizeof(LARGE_INTEGER),
  212. // CounterOffset
  213. AARP_PKT_PROCTIME_OFFSET
  214. },
  215. {
  216. // ByteLength
  217. sizeof(PERF_COUNTER_DEFINITION),
  218. // CounterNameTitleIndex
  219. 1066,
  220. // CounterNameTitle
  221. 0,
  222. // CounterHelpTitleIndex
  223. 1067,
  224. // CounterHelpTitle
  225. 0,
  226. // DefaultScale
  227. -1,
  228. // DetailLevel
  229. PERF_DETAIL_NOVICE,
  230. // CounterType
  231. PERF_COUNTER_COUNTER,
  232. // CounterSize
  233. sizeof(DWORD),
  234. // CounterOffset
  235. NUM_AARP_PKTS_IN_OFFSET
  236. },
  237. {
  238. // ByteLength
  239. sizeof(PERF_COUNTER_DEFINITION),
  240. // CounterNameTitleIndex
  241. 1068,
  242. // CounterNameTitle
  243. 0,
  244. // CounterHelpTitleIndex
  245. 1069,
  246. // CounterHelpTitle
  247. 0,
  248. // DefaultScale
  249. 0,
  250. // DetailLevel
  251. PERF_DETAIL_NOVICE,
  252. // CounterType
  253. PERF_AVERAGE_BULK,
  254. // CounterSize
  255. sizeof(LARGE_INTEGER),
  256. // CounterOffset
  257. ATP_PKT_PROCTIME_OFFSET
  258. },
  259. {
  260. // ByteLength
  261. sizeof(PERF_COUNTER_DEFINITION),
  262. // CounterNameTitleIndex
  263. 1070,
  264. // CounterNameTitle
  265. 0,
  266. // CounterHelpTitleIndex
  267. 1071,
  268. // CounterHelpTitle
  269. 0,
  270. // DefaultScale
  271. -1,
  272. // DetailLevel
  273. PERF_DETAIL_NOVICE,
  274. // CounterType
  275. PERF_COUNTER_COUNTER,
  276. // CounterSize
  277. sizeof(DWORD),
  278. // CounterOffset
  279. NUM_ATP_PKTS_IN_OFFSET
  280. },
  281. {
  282. // ByteLength
  283. sizeof(PERF_COUNTER_DEFINITION),
  284. // CounterNameTitleIndex
  285. 1072,
  286. // CounterNameTitle
  287. 0,
  288. // CounterHelpTitleIndex
  289. 1073,
  290. // CounterHelpTitle
  291. 0,
  292. // DefaultScale
  293. 0,
  294. // DetailLevel
  295. PERF_DETAIL_NOVICE,
  296. // CounterType
  297. PERF_AVERAGE_BULK,
  298. // CounterSize
  299. sizeof(LARGE_INTEGER),
  300. // CounterOffset
  301. NBP_PKT_PROCTIME_OFFSET
  302. },
  303. {
  304. // ByteLength
  305. sizeof(PERF_COUNTER_DEFINITION),
  306. // CounterNameTitleIndex
  307. 1074,
  308. // CounterNameTitle
  309. 0,
  310. // CounterHelpTitleIndex
  311. 1075,
  312. // CounterHelpTitle
  313. 0,
  314. // DefaultScale
  315. -1,
  316. // DetailLevel
  317. PERF_DETAIL_NOVICE,
  318. // CounterType
  319. PERF_COUNTER_COUNTER,
  320. // CounterSize
  321. sizeof(DWORD),
  322. // CounterOffset
  323. NUM_NBP_PKTS_IN_OFFSET
  324. },
  325. {
  326. // ByteLength
  327. sizeof(PERF_COUNTER_DEFINITION),
  328. // CounterNameTitleIndex
  329. 1076,
  330. // CounterNameTitle
  331. 0,
  332. // CounterHelpTitleIndex
  333. 1077,
  334. // CounterHelpTitle
  335. 0,
  336. // DefaultScale
  337. 0,
  338. // DetailLevel
  339. PERF_DETAIL_NOVICE,
  340. // CounterType
  341. PERF_AVERAGE_BULK,
  342. // CounterSize
  343. sizeof(LARGE_INTEGER),
  344. // CounterOffset
  345. ZIP_PKT_PROCTIME_OFFSET
  346. },
  347. {
  348. // ByteLength
  349. sizeof(PERF_COUNTER_DEFINITION),
  350. // CounterNameTitleIndex
  351. 1078,
  352. // CounterNameTitle
  353. 0,
  354. // CounterHelpTitleIndex
  355. 1079,
  356. // CounterHelpTitle
  357. 0,
  358. // DefaultScale
  359. -1,
  360. // DetailLevel
  361. PERF_DETAIL_NOVICE,
  362. // CounterType
  363. PERF_COUNTER_COUNTER,
  364. // CounterSize
  365. sizeof(DWORD),
  366. // CounterOffset
  367. NUM_ZIP_PKTS_IN_OFFSET
  368. },
  369. {
  370. // ByteLength
  371. sizeof(PERF_COUNTER_DEFINITION),
  372. // CounterNameTitleIndex
  373. 1080,
  374. // CounterNameTitle
  375. 0,
  376. // CounterHelpTitleIndex
  377. 1081,
  378. // CounterHelpTitle
  379. 0,
  380. // DefaultScale
  381. 0,
  382. // DetailLevel
  383. PERF_DETAIL_NOVICE,
  384. // CounterType
  385. PERF_AVERAGE_BULK,
  386. // CounterSize
  387. sizeof(LARGE_INTEGER),
  388. // CounterOffset
  389. RTMP_PKT_PROCTIME_OFFSET
  390. },
  391. {
  392. // ByteLength
  393. sizeof(PERF_COUNTER_DEFINITION),
  394. // CounterNameTitleIndex
  395. 1082,
  396. // CounterNameTitle
  397. 0,
  398. // CounterHelpTitleIndex
  399. 1083,
  400. // CounterHelpTitle
  401. 0,
  402. // DefaultScale
  403. -1,
  404. // DetailLevel
  405. PERF_DETAIL_NOVICE,
  406. // CounterType
  407. PERF_COUNTER_COUNTER,
  408. // CounterSize
  409. sizeof(DWORD),
  410. // CounterOffset
  411. NUM_RTMP_PKTS_IN_OFFSET
  412. },
  413. {
  414. // ByteLength
  415. sizeof(PERF_COUNTER_DEFINITION),
  416. // CounterNameTitleIndex
  417. 1084,
  418. // CounterNameTitle
  419. 0,
  420. // CounterHelpTitleIndex
  421. 1085,
  422. // CounterHelpTitle
  423. 0,
  424. // DefaultScale
  425. -1,
  426. // DetailLevel
  427. PERF_DETAIL_NOVICE,
  428. // CounterType
  429. PERF_COUNTER_RAWCOUNT,
  430. // CounterSize
  431. sizeof(DWORD),
  432. // CounterOffset
  433. NUM_ATP_LOCAL_RETRY_OFFSET
  434. },
  435. {
  436. // ByteLength
  437. sizeof(PERF_COUNTER_DEFINITION),
  438. // CounterNameTitleIndex
  439. 1100,
  440. // CounterNameTitle
  441. 0,
  442. // CounterHelpTitleIndex
  443. 1101,
  444. // CounterHelpTitle
  445. 0,
  446. // DefaultScale
  447. -1,
  448. // DetailLevel
  449. PERF_DETAIL_NOVICE,
  450. // CounterType
  451. PERF_COUNTER_RAWCOUNT,
  452. // CounterSize
  453. sizeof(DWORD),
  454. // CounterOffset
  455. NUM_ATP_REMOTE_RETRY_OFFSET
  456. },
  457. {
  458. // ByteLength
  459. sizeof(PERF_COUNTER_DEFINITION),
  460. // CounterNameTitleIndex
  461. 1086,
  462. // CounterNameTitle
  463. 0,
  464. // CounterHelpTitleIndex
  465. 1087,
  466. // CounterHelpTitle
  467. 0,
  468. // DefaultScale
  469. 0,
  470. // DetailLevel
  471. PERF_DETAIL_NOVICE,
  472. // CounterType
  473. PERF_COUNTER_RAWCOUNT,
  474. // CounterSize
  475. sizeof(DWORD),
  476. // CounterOffset
  477. NUM_ATP_RESP_TIMEOUT_OFFSET
  478. },
  479. {
  480. // ByteLength
  481. sizeof(PERF_COUNTER_DEFINITION),
  482. // CounterNameTitleIndex
  483. 1088,
  484. // CounterNameTitle
  485. 0,
  486. // CounterHelpTitleIndex
  487. 1089,
  488. // CounterHelpTitle
  489. 0,
  490. // DefaultScale
  491. -1,
  492. // DetailLevel
  493. PERF_DETAIL_NOVICE,
  494. // CounterType
  495. PERF_COUNTER_COUNTER,
  496. // CounterSize
  497. sizeof(DWORD),
  498. // CounterOffset
  499. NUM_ATP_XO_RESPONSE_OFFSET
  500. },
  501. {
  502. // ByteLength
  503. sizeof(PERF_COUNTER_DEFINITION),
  504. // CounterNameTitleIndex
  505. 1090,
  506. // CounterNameTitle
  507. 0,
  508. // CounterHelpTitleIndex
  509. 1091,
  510. // CounterHelpTitle
  511. 0,
  512. // DefaultScale
  513. 0,
  514. // DetailLevel
  515. PERF_DETAIL_NOVICE,
  516. // CounterType
  517. PERF_COUNTER_COUNTER,
  518. // CounterSize
  519. sizeof(DWORD),
  520. // CounterOffset
  521. NUM_ATP_ALO_RESPONSE_OFFSET
  522. },
  523. {
  524. // ByteLength
  525. sizeof(PERF_COUNTER_DEFINITION),
  526. // CounterNameTitleIndex
  527. 1092,
  528. // CounterNameTitle
  529. 0,
  530. // CounterHelpTitleIndex
  531. 1093,
  532. // CounterHelpTitle
  533. 0,
  534. // DefaultScale
  535. -1,
  536. // DetailLevel
  537. PERF_DETAIL_NOVICE,
  538. // CounterType
  539. PERF_COUNTER_COUNTER,
  540. // CounterSize
  541. sizeof(DWORD),
  542. // CounterOffset
  543. NUM_ATP_RECD_REL_OFFSET
  544. },
  545. {
  546. // ByteLength
  547. sizeof(PERF_COUNTER_DEFINITION),
  548. // CounterNameTitleIndex
  549. 1094,
  550. // CounterNameTitle
  551. 0,
  552. // CounterHelpTitleIndex
  553. 1095,
  554. // CounterHelpTitle
  555. 0,
  556. // DefaultScale
  557. -4,
  558. // DetailLevel
  559. PERF_DETAIL_NOVICE,
  560. // CounterType
  561. PERF_COUNTER_RAWCOUNT,
  562. // CounterSize
  563. sizeof(DWORD),
  564. // CounterOffset
  565. CUR_MEM_USAGE_OFFSET
  566. },
  567. {
  568. // ByteLength
  569. sizeof(PERF_COUNTER_DEFINITION),
  570. // CounterNameTitleIndex
  571. 1096,
  572. // CounterNameTitle
  573. 0,
  574. // CounterHelpTitleIndex
  575. 1097,
  576. // CounterHelpTitle
  577. 0,
  578. // DefaultScale
  579. 0,
  580. // DetailLevel
  581. PERF_DETAIL_NOVICE,
  582. // CounterType
  583. PERF_COUNTER_COUNTER,
  584. // CounterSize
  585. sizeof(DWORD),
  586. // CounterOffset
  587. NUM_PKT_ROUTED_IN_OFFSET
  588. },
  589. {
  590. // ByteLength
  591. sizeof(PERF_COUNTER_DEFINITION),
  592. // CounterNameTitleIndex
  593. 1102,
  594. // CounterNameTitle
  595. 0,
  596. // CounterHelpTitleIndex
  597. 1103,
  598. // CounterHelpTitle
  599. 0,
  600. // DefaultScale
  601. 0,
  602. // DetailLevel
  603. PERF_DETAIL_NOVICE,
  604. // CounterType
  605. PERF_COUNTER_COUNTER,
  606. // CounterSize
  607. sizeof(DWORD),
  608. // CounterOffset
  609. NUM_PKT_ROUTED_OUT_OFFSET
  610. },
  611. {
  612. // ByteLength
  613. sizeof(PERF_COUNTER_DEFINITION),
  614. // CounterNameTitleIndex
  615. 1098,
  616. // CounterNameTitle
  617. 0,
  618. // CounterHelpTitleIndex
  619. 1099,
  620. // CounterHelpTitle
  621. 0,
  622. // DefaultScale
  623. 0,
  624. // DetailLevel
  625. PERF_DETAIL_NOVICE,
  626. // CounterType
  627. PERF_COUNTER_RAWCOUNT,
  628. // CounterSize
  629. sizeof(DWORD),
  630. // CounterOffset
  631. NUM_PKT_DROPPED_OFFSET
  632. }
  633. };
  634.