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.

120 lines
4.6 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATAEXPR.h
  5. Abstract:
  6. Header file for the Windows NT Extended Process Performance counters.
  7. This file contains definitions to construct the dynamic data
  8. which is returned by the Configuration Registry. Data from
  9. various system API calls is placed into the structures shown
  10. here.
  11. Author:
  12. Bob Watson 28-Oct-1996
  13. Revision History:
  14. --*/
  15. #ifndef _DATA_EX_PROCESS_H_
  16. #define _DATA_EX_PROCESS_H_
  17. //
  18. // extended process performance definition structure
  19. //
  20. typedef struct _EXPROCESS_DATA_DEFINITION {
  21. PERF_OBJECT_TYPE ExProcessObjectType;
  22. PERF_COUNTER_DEFINITION ProcessId;
  23. PERF_COUNTER_DEFINITION ImageReservedBytes;
  24. PERF_COUNTER_DEFINITION ImageFreeBytes;
  25. PERF_COUNTER_DEFINITION ReservedBytes;
  26. PERF_COUNTER_DEFINITION FreeBytes;
  27. PERF_COUNTER_DEFINITION CommitNoAccess;
  28. PERF_COUNTER_DEFINITION CommitReadOnly;
  29. PERF_COUNTER_DEFINITION CommitReadWrite;
  30. PERF_COUNTER_DEFINITION CommitWriteCopy;
  31. PERF_COUNTER_DEFINITION CommitExecute;
  32. PERF_COUNTER_DEFINITION CommitExecuteRead;
  33. PERF_COUNTER_DEFINITION CommitExecuteWrite;
  34. PERF_COUNTER_DEFINITION CommitExecuteWriteCopy;
  35. PERF_COUNTER_DEFINITION ReservedNoAccess;
  36. PERF_COUNTER_DEFINITION ReservedReadOnly;
  37. PERF_COUNTER_DEFINITION ReservedReadWrite;
  38. PERF_COUNTER_DEFINITION ReservedWriteCopy;
  39. PERF_COUNTER_DEFINITION ReservedExecute;
  40. PERF_COUNTER_DEFINITION ReservedExecuteRead;
  41. PERF_COUNTER_DEFINITION ReservedExecuteWrite;
  42. PERF_COUNTER_DEFINITION ReservedExecuteWriteCopy;
  43. PERF_COUNTER_DEFINITION UnassignedNoAccess;
  44. PERF_COUNTER_DEFINITION UnassignedReadOnly;
  45. PERF_COUNTER_DEFINITION UnassignedReadWrite;
  46. PERF_COUNTER_DEFINITION UnassignedWriteCopy;
  47. PERF_COUNTER_DEFINITION UnassignedExecute;
  48. PERF_COUNTER_DEFINITION UnassignedExecuteRead;
  49. PERF_COUNTER_DEFINITION UnassignedExecuteWrite;
  50. PERF_COUNTER_DEFINITION UnassignedExecuteWriteCopy;
  51. PERF_COUNTER_DEFINITION ImageTotalNoAccess;
  52. PERF_COUNTER_DEFINITION ImageTotalReadOnly;
  53. PERF_COUNTER_DEFINITION ImageTotalReadWrite;
  54. PERF_COUNTER_DEFINITION ImageTotalWriteCopy;
  55. PERF_COUNTER_DEFINITION ImageTotalExecute;
  56. PERF_COUNTER_DEFINITION ImageTotalExecuteRead;
  57. PERF_COUNTER_DEFINITION ImageTotalExecuteWrite;
  58. PERF_COUNTER_DEFINITION ImageTotalExecuteWriteCopy;
  59. } EXPROCESS_DATA_DEFINITION, * PEXPROCESS_DATA_DEFINITION;
  60. typedef struct _EXPROCESS_COUNTER_DATA {
  61. PERF_COUNTER_BLOCK CounterBlock;
  62. DWORD Reserved; // for alignment
  63. LONGLONG ProcessId;
  64. LONGLONG ImageReservedBytes;
  65. LONGLONG ImageFreeBytes;
  66. LONGLONG ReservedBytes;
  67. LONGLONG FreeBytes;
  68. LONGLONG CommitNoAccess;
  69. LONGLONG CommitReadOnly;
  70. LONGLONG CommitReadWrite;
  71. LONGLONG CommitWriteCopy;
  72. LONGLONG CommitExecute;
  73. LONGLONG CommitExecuteRead;
  74. LONGLONG CommitExecuteWrite;
  75. LONGLONG CommitExecuteWriteCopy;
  76. LONGLONG ReservedNoAccess;
  77. LONGLONG ReservedReadOnly;
  78. LONGLONG ReservedReadWrite;
  79. LONGLONG ReservedWriteCopy;
  80. LONGLONG ReservedExecute;
  81. LONGLONG ReservedExecuteRead;
  82. LONGLONG ReservedExecuteWrite;
  83. LONGLONG ReservedExecuteWriteCopy;
  84. LONGLONG UnassignedNoAccess;
  85. LONGLONG UnassignedReadOnly;
  86. LONGLONG UnassignedReadWrite;
  87. LONGLONG UnassignedWriteCopy;
  88. LONGLONG UnassignedExecute;
  89. LONGLONG UnassignedExecuteRead;
  90. LONGLONG UnassignedExecuteWrite;
  91. LONGLONG UnassignedExecuteWriteCopy;
  92. LONGLONG ImageTotalNoAccess;
  93. LONGLONG ImageTotalReadOnly;
  94. LONGLONG ImageTotalReadWrite;
  95. LONGLONG ImageTotalWriteCopy;
  96. LONGLONG ImageTotalExecute;
  97. LONGLONG ImageTotalExecuteRead;
  98. LONGLONG ImageTotalExecuteWrite;
  99. LONGLONG ImageTotalExecuteWriteCopy;
  100. } EXPROCESS_COUNTER_DATA, *PEXPROCESS_COUNTER_DATA;
  101. extern EXPROCESS_DATA_DEFINITION ExProcessDataDefinition;
  102. #endif // _DATA_EX_PROCESS_H_