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.

121 lines
2.8 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. dataobj.c
  5. Abstract:
  6. a file containing the constant data structures used by the Performance
  7. Monitor data for the OS Object 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 "dataobj.h"
  21. //
  22. // Constant structure initializations
  23. // defined in dataobj.h
  24. //
  25. OBJECTS_DATA_DEFINITION ObjectsDataDefinition = {
  26. { sizeof(OBJECTS_DATA_DEFINITION) + sizeof(OBJECTS_COUNTER_DATA),
  27. sizeof(OBJECTS_DATA_DEFINITION),
  28. sizeof(PERF_OBJECT_TYPE),
  29. OBJECT_OBJECT_TITLE_INDEX,
  30. 0,
  31. 261,
  32. 0,
  33. PERF_DETAIL_NOVICE,
  34. (sizeof(OBJECTS_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  35. sizeof(PERF_COUNTER_DEFINITION),
  36. 0,
  37. -1,
  38. UNICODE_CODE_PAGE,
  39. {0L,0L},
  40. {0L,0L}
  41. },
  42. { sizeof(PERF_COUNTER_DEFINITION),
  43. 248,
  44. 0,
  45. 249,
  46. 0,
  47. 0,
  48. PERF_DETAIL_NOVICE,
  49. PERF_COUNTER_RAWCOUNT,
  50. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Processes),
  51. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Processes
  52. },
  53. { sizeof(PERF_COUNTER_DEFINITION),
  54. 250,
  55. 0,
  56. 251,
  57. 0,
  58. -1,
  59. PERF_DETAIL_NOVICE,
  60. PERF_COUNTER_RAWCOUNT,
  61. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Threads),
  62. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Threads
  63. },
  64. { sizeof(PERF_COUNTER_DEFINITION),
  65. 252,
  66. 0,
  67. 253,
  68. 0,
  69. -1,
  70. PERF_DETAIL_EXPERT,
  71. PERF_COUNTER_RAWCOUNT,
  72. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Events),
  73. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Events
  74. },
  75. { sizeof(PERF_COUNTER_DEFINITION),
  76. 254,
  77. 0,
  78. 255,
  79. 0,
  80. -1,
  81. PERF_DETAIL_EXPERT,
  82. PERF_COUNTER_RAWCOUNT,
  83. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Semaphores),
  84. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Semaphores
  85. },
  86. { sizeof(PERF_COUNTER_DEFINITION),
  87. 256,
  88. 0,
  89. 257,
  90. 0,
  91. 0,
  92. PERF_DETAIL_EXPERT,
  93. PERF_COUNTER_RAWCOUNT,
  94. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Mutexes),
  95. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Mutexes
  96. },
  97. { sizeof(PERF_COUNTER_DEFINITION),
  98. 258,
  99. 0,
  100. 259,
  101. 0,
  102. -1,
  103. PERF_DETAIL_EXPERT,
  104. PERF_COUNTER_RAWCOUNT,
  105. RTL_FIELD_SIZE(OBJECTS_COUNTER_DATA, Sections),
  106. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Sections
  107. }
  108. };