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.

138 lines
3.8 KiB

  1. /*
  2. Performance Logging Service common definitions file
  3. */
  4. #ifndef _PERFLOG_COMMON_H_
  5. #define _PERFLOG_COMMON_H_
  6. // common definitions
  7. #if UNICODE
  8. #define _ultot _ultow
  9. #define _ltot _ltow
  10. #else // not UNICODE
  11. #define _ultot _ultoa
  12. #define _ltot _ltoa
  13. #endif
  14. // PSM_QUERYSIBLING message parameters
  15. // WPARAM arguments
  16. #define PDLCNFIG_PSM_QS_LISTBOX_STARS 1
  17. #define PDLCNFIG_PSM_QS_WILDCARD_LOG 2
  18. #define PDLCNFIG_PSM_QS_ARE_YOU_READY 3
  19. // return values for ...LISTBOX_STARS
  20. #define PDLCNFIG_LISTBOX_STARS_DONT_KNOW 0
  21. #define PDLCNFIG_LISTBOX_STARS_YES 1
  22. #define PDLCNFIG_LISTBOX_STARS_NO 2
  23. // return values for ...WILDCARD_LOG
  24. #define PDLCNFIG_WILDCARD_LOG_DONT_KNOW 0
  25. #define PDLCNFIG_WILDCARD_LOG_YES 1
  26. #define PDLCNFIG_WILDCARD_LOG_NO 2
  27. // output file configuration definitions
  28. #define OPD_CSV_FILE 0
  29. #define OPD_TSV_FILE 1
  30. #define OPD_BIN_FILE 2
  31. #define OPD_NUM_FILE_TYPES 3
  32. #define OPD_NAME_MMDDHH 0
  33. #define OPD_NAME_NNNNNN 1
  34. #define OPD_NAME_YYDDD 2
  35. #define OPD_NAME_YYMM 3
  36. #define OPD_NAME_YYMMDD 4
  37. #define OPD_NAME_YYMMDDHH 5
  38. #define OPD_RENAME_HOURS 0
  39. #define OPD_RENAME_DAYS 1
  40. #define OPD_RENAME_MONTHS 2
  41. #define OPD_RENAME_KBYTES 3
  42. #define OPD_RENAME_MBYTES 4
  43. // settings page
  44. // sample interval units combo box settings
  45. #define SIU_SECONDS 0
  46. #define SIU_MINUTES 1
  47. #define SIU_HOURS 2
  48. #define SIU_DAYS 3
  49. #define SECONDS_IN_DAY 86400
  50. #define SECONDS_IN_HOUR 3600
  51. #define SECONDS_IN_MINUTE 60
  52. #define LOG_SERV_START 1
  53. #define LOG_SERV_STOP 2
  54. #define LOG_SERV_PAUSE 4
  55. #define LOG_SERV_RESUME 8
  56. // alarm configuration and setting information
  57. // alarm configuration flags
  58. #define ALERT_FLAGS_OVER_THRESHOLD (DWORD)0x00000001
  59. #define ALERT_FLAGS_UNDER_THRESHOLD (DWORD)0x00000002
  60. #define ALERT_FLAGS_THRESHOLD_MASK (DWORD)0x00000003
  61. #define ALERT_FLAGS_EXECUTE_PROGRAM (DWORD)0x00000010
  62. #define ALERT_FLAGS_TEXT_LOG (DWORD)0x00000020
  63. #define ALERT_FLAGS_EVENT_LOG (DWORD)0x00000040
  64. #define ALERT_FLAGS_NET_MESSAGE (DWORD)0x00000080
  65. #define ALERT_FLAGS_FIRST_TIME (DWORD)0x00000100
  66. #define ALERT_FLAGS_EVERY_TIME (DWORD)0x00000200
  67. #define ALERT_FLAGS_NAME_PARAM (DWORD)0x00001000
  68. #define ALERT_FLAGS_VALUE_PARAM (DWORD)0x00002000
  69. #define ALERT_FLAGS_THRESHOLD_PARAM (DWORD)0x00004000
  70. #define ALERT_FLAGS_TIME_PARAM (DWORD)0x00008000
  71. #define ALERT_FLAGS_INFO (DWORD)0x00010000
  72. #define ALERT_FLAGS_WARNING (DWORD)0x00020000
  73. #define ALERT_FLAGS_ERROR (DWORD)0x00030000
  74. #define ALERT_FLAGS_SEVERITY_SHIFT (DWORD)16L
  75. #define ALERT_FLAGS_SEVERITY_MASK (DWORD)0x00030000
  76. #define ALERT_FLAGS_DELETE (DWORD)0x40000000
  77. #define ALERT_FLAGS_ALERTED (DWORD)0x80000000
  78. typedef struct _ALERT_CONFIG_INFO_W {
  79. DWORD dwTotalSize;
  80. HKEY hKeyCounter;
  81. LONG lEditIndex;
  82. LPWSTR szCounterPath;
  83. LPWSTR szCommandLine;
  84. LPWSTR szNetName;
  85. DWORD dwAlertFlags;
  86. DWORD dwThresholdValue;
  87. } ALERT_CONFIG_INFO_W, FAR * LPALERT_CONFIG_INFO_W;
  88. typedef struct _ALERT_CONFIG_INFO_A {
  89. DWORD dwTotalSize;
  90. HKEY hKeyCounter;
  91. LONG lEditIndex;
  92. LPSTR szCounterPath;
  93. LPSTR szCommandLine;
  94. LPSTR szNetName;
  95. DWORD dwAlertFlags;
  96. DWORD dwThresholdValue;
  97. } ALERT_CONFIG_INFO_A, FAR * LPALERT_CONFIG_INFO_A;
  98. #ifdef UNICODE
  99. #define ALERT_CONFIG_INFO ALERT_CONFIG_INFO_W
  100. #define LPALERT_CONFIG_INFO LPALERT_CONFIG_INFO_W
  101. #else
  102. #define ALERT_CONFIG_INFO ALERT_CONFIG_INFO_A
  103. #define LPALERT_CONFIG_INFO LPALERT_CONFIG_INFO_A
  104. #endif
  105. #define KEY_BS_CHAR TEXT('|')
  106. #define BS_CHAR TEXT('\\')
  107. #define KEY_GT_CHAR TEXT('>')
  108. #define KEY_LT_CHAR TEXT('<')
  109. #endif //_PERFLOG_COMMON_H_
  110.