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.

73 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. datatdet.c
  5. Abstract:
  6. a file containing the constant data structures used by the Performance
  7. Monitor data for the Thread Detail 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 "datatdet.h"
  21. // dummy variable for field sizing.
  22. static THREAD_DETAILS_COUNTER_DATA tdcd;
  23. //
  24. // Constant structure initializations
  25. // defined in datatdet.h
  26. //
  27. THREAD_DETAILS_DATA_DEFINITION ThreadDetailsDataDefinition =
  28. {
  29. {
  30. 0,
  31. sizeof (THREAD_DETAILS_DATA_DEFINITION),
  32. sizeof (PERF_OBJECT_TYPE),
  33. THREAD_DETAILS_OBJECT_TITLE_INDEX,
  34. 0,
  35. (THREAD_DETAILS_OBJECT_TITLE_INDEX+1),
  36. 0,
  37. PERF_DETAIL_WIZARD,
  38. (sizeof(THREAD_DETAILS_DATA_DEFINITION) - sizeof(PERF_OBJECT_TYPE)) /
  39. sizeof (PERF_COUNTER_DEFINITION),
  40. 0,
  41. 0,
  42. UNICODE_CODE_PAGE,
  43. {0L, 0L},
  44. {0L, 0L}
  45. },
  46. {
  47. sizeof (PERF_COUNTER_DEFINITION),
  48. 708,
  49. 0,
  50. 709,
  51. 0,
  52. 0,
  53. PERF_DETAIL_WIZARD,
  54. PERF_COUNTER_LARGE_RAWCOUNT_HEX,
  55. sizeof (tdcd.UserPc),
  56. (DWORD)(ULONG_PTR)&((PTHREAD_DETAILS_COUNTER_DATA)0)->UserPc
  57. }
  58. };
  59.