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.

71 lines
1.9 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. DATATHRD.h
  5. Abstract:
  6. Header file for the Windows NT Thread 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 _DATATHRD_H_
  16. #define _DATATHRD_H_
  17. //
  18. // This is the counter structure presently returned by NT. The
  19. // Performance Monitor MUST *NOT* USE THESE STRUCTURES!
  20. //
  21. typedef struct _THREAD_DATA_DEFINITION {
  22. PERF_OBJECT_TYPE ThreadObjectType;
  23. PERF_COUNTER_DEFINITION ContextSwitches;
  24. PERF_COUNTER_DEFINITION ProcessorTime;
  25. PERF_COUNTER_DEFINITION UserTime;
  26. PERF_COUNTER_DEFINITION KernelTime;
  27. PERF_COUNTER_DEFINITION ThreadElapsedTime;
  28. PERF_COUNTER_DEFINITION ThreadPriority;
  29. PERF_COUNTER_DEFINITION ThreadBasePriority;
  30. PERF_COUNTER_DEFINITION ThreadStartAddr;
  31. PERF_COUNTER_DEFINITION ThreadState;
  32. PERF_COUNTER_DEFINITION WaitReason;
  33. PERF_COUNTER_DEFINITION ProcessId;
  34. PERF_COUNTER_DEFINITION ThreadId;
  35. } THREAD_DATA_DEFINITION;
  36. typedef struct _THREAD_COUNTER_DATA {
  37. PERF_COUNTER_BLOCK CounterBlock;
  38. DWORD ContextSwitches;
  39. LONGLONG ProcessorTime;
  40. LONGLONG UserTime;
  41. LONGLONG KernelTime;
  42. LONGLONG ThreadElapsedTime;
  43. DWORD ThreadPriority;
  44. DWORD ThreadBasePriority;
  45. LPVOID ThreadStartAddr;
  46. DWORD ThreadState;
  47. DWORD WaitReason;
  48. DWORD ProcessId;
  49. DWORD ThreadId;
  50. } THREAD_COUNTER_DATA, * PTHREAD_COUNTER_DATA;
  51. extern THREAD_DATA_DEFINITION ThreadDataDefinition;
  52. #endif // _DATATHRD_H_