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.

125 lines
2.6 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. // dummy variable for field sizing.
  22. static OBJECTS_COUNTER_DATA ocd;
  23. //
  24. // Constant structure initializations
  25. // defined in dataobj.h
  26. //
  27. OBJECTS_DATA_DEFINITION ObjectsDataDefinition = {
  28. { sizeof(OBJECTS_DATA_DEFINITION) + sizeof(OBJECTS_COUNTER_DATA),
  29. sizeof(OBJECTS_DATA_DEFINITION),
  30. sizeof(PERF_OBJECT_TYPE),
  31. OBJECT_OBJECT_TITLE_INDEX,
  32. 0,
  33. 261,
  34. 0,
  35. PERF_DETAIL_NOVICE,
  36. (sizeof(OBJECTS_DATA_DEFINITION)-sizeof(PERF_OBJECT_TYPE))/
  37. sizeof(PERF_COUNTER_DEFINITION),
  38. 0,
  39. -1,
  40. UNICODE_CODE_PAGE,
  41. {0L,0L},
  42. {0L,0L}
  43. },
  44. { sizeof(PERF_COUNTER_DEFINITION),
  45. 248,
  46. 0,
  47. 249,
  48. 0,
  49. 0,
  50. PERF_DETAIL_NOVICE,
  51. PERF_COUNTER_RAWCOUNT,
  52. sizeof(ocd.Processes),
  53. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Processes
  54. },
  55. { sizeof(PERF_COUNTER_DEFINITION),
  56. 250,
  57. 0,
  58. 251,
  59. 0,
  60. -1,
  61. PERF_DETAIL_NOVICE,
  62. PERF_COUNTER_RAWCOUNT,
  63. sizeof(ocd.Threads),
  64. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Threads
  65. },
  66. { sizeof(PERF_COUNTER_DEFINITION),
  67. 252,
  68. 0,
  69. 253,
  70. 0,
  71. -1,
  72. PERF_DETAIL_EXPERT,
  73. PERF_COUNTER_RAWCOUNT,
  74. sizeof(ocd.Events),
  75. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Events
  76. },
  77. { sizeof(PERF_COUNTER_DEFINITION),
  78. 254,
  79. 0,
  80. 255,
  81. 0,
  82. -1,
  83. PERF_DETAIL_EXPERT,
  84. PERF_COUNTER_RAWCOUNT,
  85. sizeof(ocd.Semaphores),
  86. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Semaphores
  87. },
  88. { sizeof(PERF_COUNTER_DEFINITION),
  89. 256,
  90. 0,
  91. 257,
  92. 0,
  93. 0,
  94. PERF_DETAIL_EXPERT,
  95. PERF_COUNTER_RAWCOUNT,
  96. sizeof(ocd.Mutexes),
  97. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Mutexes
  98. },
  99. { sizeof(PERF_COUNTER_DEFINITION),
  100. 258,
  101. 0,
  102. 259,
  103. 0,
  104. -1,
  105. PERF_DETAIL_EXPERT,
  106. PERF_COUNTER_RAWCOUNT,
  107. sizeof(ocd.Sections),
  108. (DWORD)(ULONG_PTR)&((POBJECTS_COUNTER_DATA)0)->Sections
  109. }
  110. };
  111.