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.

92 lines
1.8 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. datanbt.c
  5. Abstract:
  6. The file containing the constant data structures
  7. for the Performance Monitor data for the Nbt
  8. Extensible Objects.
  9. This file contains a set of constant data structures which are
  10. currently defined for the Nbt Extensible Objects. This is an
  11. example of how other such objects could be defined.
  12. Created:
  13. Christos Tsollis 08/26/92
  14. Revision History:
  15. --*/
  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 "datanbt.h"
  26. //
  27. // Constant structure initializations
  28. //
  29. NBT_DATA_DEFINITION NbtDataDefinition = {
  30. { sizeof(NBT_DATA_DEFINITION),
  31. sizeof(NBT_DATA_DEFINITION),
  32. sizeof(PERF_OBJECT_TYPE),
  33. 502,
  34. 0,
  35. 503,
  36. 0,
  37. PERF_DETAIL_ADVANCED,
  38. (sizeof(NBT_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  39. sizeof(PERF_COUNTER_DEFINITION),
  40. 2,
  41. 0,
  42. 0
  43. },
  44. { sizeof(PERF_COUNTER_DEFINITION),
  45. 264,
  46. 0,
  47. 505,
  48. 0,
  49. -4,
  50. PERF_DETAIL_ADVANCED,
  51. PERF_COUNTER_BULK_COUNT,
  52. sizeof(LARGE_INTEGER),
  53. RECEIVED_BYTES_OFFSET
  54. },
  55. { sizeof(PERF_COUNTER_DEFINITION),
  56. 506,
  57. 0,
  58. 507,
  59. 0,
  60. -4,
  61. PERF_DETAIL_ADVANCED,
  62. PERF_COUNTER_BULK_COUNT,
  63. sizeof(LARGE_INTEGER),
  64. SENT_BYTES_OFFSET
  65. },
  66. { sizeof(PERF_COUNTER_DEFINITION),
  67. 388,
  68. 0,
  69. 509,
  70. 0,
  71. -4,
  72. PERF_DETAIL_ADVANCED,
  73. PERF_COUNTER_BULK_COUNT,
  74. sizeof(LARGE_INTEGER),
  75. TOTAL_BYTES_OFFSET
  76. }
  77. };
  78.