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.

84 lines
3.1 KiB

  1. /*===================================================================
  2. Microsoft Denali
  3. Microsoft Confidential.
  4. Copyright 1996 Microsoft Corporation. All Rights Reserved.
  5. Component: Main
  6. File: axpfdata.h
  7. Owner: LeiJin
  8. Abstract:
  9. header file for the Denali Extensible Object data definitions.
  10. ===================================================================*/
  11. #ifndef _AXPFDATA_H_
  12. #define _AXPFDATA_H_
  13. // AX is shortcut for ActiveX
  14. #define AX_NUM_PERF_OBJECT_TYPES 1
  15. #define AX_NUM_PERFCOUNT 40
  16. #pragma pack (4)
  17. struct AXPD
  18. {
  19. PERF_OBJECT_TYPE AXSObjectType;
  20. PERF_COUNTER_DEFINITION Counters[AX_NUM_PERFCOUNT];
  21. };
  22. #pragma pack ()
  23. // Counter offset in the Perf Counter Block
  24. // Note: those offsets are not the offsets in the counter defintion data structure.
  25. // that is, not the offsets in the AXPD.
  26. #define AX_DEBUGDOCREQ_OFFSET sizeof(DWORD)
  27. #define AX_REQERRRUNTIME_OFFSET 2*sizeof(DWORD)
  28. #define AX_REQERRPREPROC_OFFSET 3*sizeof(DWORD)
  29. #define AX_REQERRCOMPILE_OFFSET 4*sizeof(DWORD)
  30. #define AX_REQERRORPERSEC_OFFSET 5*sizeof(DWORD)
  31. #define AX_REQTOTALBYTEIN_OFFSET 6*sizeof(DWORD)
  32. #define AX_REQTOTALBYTEOUT_OFFSET 7*sizeof(DWORD)
  33. #define AX_REQEXECTIME_OFFSET 8*sizeof(DWORD)
  34. #define AX_REQWAITTIME_OFFSET 9*sizeof(DWORD)
  35. #define AX_REQCOMFAILED_OFFSET 10*sizeof(DWORD)
  36. #define AX_REQBROWSEREXEC_OFFSET 11*sizeof(DWORD)
  37. #define AX_REQFAILED_OFFSET 12*sizeof(DWORD)
  38. #define AX_REQNOTAUTH_OFFSET 13*sizeof(DWORD)
  39. #define AX_REQNOTFOUND_OFFSET 14*sizeof(DWORD)
  40. #define AX_REQCURRENT_OFFSET 15*sizeof(DWORD)
  41. #define AX_REQREJECTED_OFFSET 16*sizeof(DWORD)
  42. #define AX_REQSUCCEEDED_OFFSET 17*sizeof(DWORD)
  43. #define AX_REQTIMEOUT_OFFSET 18*sizeof(DWORD)
  44. #define AX_REQTOTAL_OFFSET 19*sizeof(DWORD)
  45. #define AX_REQPERSEC_OFFSET 20*sizeof(DWORD)
  46. #define AX_SCRIPTFREEENG_OFFSET 21*sizeof(DWORD)
  47. #define AX_SESSIONLIFETIME_OFFSET 22*sizeof(DWORD)
  48. #define AX_SESSIONCURRENT_OFFSET 23*sizeof(DWORD)
  49. #define AX_SESSIONTIMEOUT_OFFSET 24*sizeof(DWORD)
  50. #define AX_SESSIONSTOTAL_OFFSET 25*sizeof(DWORD)
  51. #define AX_TEMPLCACHE_OFFSET 26*sizeof(DWORD)
  52. #define AX_TEMPLCACHEHITS_OFFSET 27*sizeof(DWORD)
  53. #define AX_TEMPLCACHETRYS_OFFSET 28*sizeof(DWORD)
  54. #define AX_TEMPLFLUSHES_OFFSET 29*sizeof(DWORD)
  55. #define AX_TRANSABORTED_OFFSET 30*sizeof(DWORD)
  56. #define AX_TRANSCOMMIT_OFFSET 31*sizeof(DWORD)
  57. #define AX_TRANSPENDING_OFFSET 32*sizeof(DWORD)
  58. #define AX_TRANSTOTAL_OFFSET 33*sizeof(DWORD)
  59. #define AX_TRANSPERSEC_OFFSET 34*sizeof(DWORD)
  60. #define AX_MEMORYTEMPLCACHE_OFFSET 35*sizeof(DWORD)
  61. #define AX_MEMORYTEMPLCACHEHITS_OFFSET 36*sizeof(DWORD)
  62. #define AX_MEMORYTEMPLCACHETRYS_OFFSET 37*sizeof(DWORD)
  63. #define AX_ENGINECACHEHITS_OFFSET 38*sizeof(DWORD)
  64. #define AX_ENGINECACHETRYS_OFFSET 39*sizeof(DWORD)
  65. #define AX_ENGINEFLUSHES_OFFSET 40*sizeof(DWORD)
  66. #define AX_PERF_LASTOFFSET AX_ENGINEFLUSHES_OFFSET
  67. #define SIZE_OF_AX_PERF_DATA AX_PERF_LASTOFFSET + sizeof(DWORD)
  68. #endif // _AXPFDATA_H_