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.

506 lines
28 KiB

  1. /*
  2. * pcy28Apr93: For now use isa number strings for Allowed values. Fix later.
  3. * jod05Apr93: Added changes for Deep Discharge
  4. * rct29Jun93: Added msg for batt RT disabled, fixed pipe names
  5. * cad03Sep93: Re-ordered some allowed values
  6. * pcy07Sep93: Made default signalling type = Smart
  7. * cad08Sep93: Fixed low battery voltage
  8. * cad16Sep93: Cleaned up self test stuff
  9. * cad12Oct93: Added colors used in front end
  10. * cad24Nov93: special color for NT windows
  11. * ajr03Dec93: Added default network socket address
  12. * cad24Jan94: changed xvt defines to c_os
  13. * pcy28Jan94: Added more flex user stuff
  14. * ajr01Feb94: Added ftok_id defaults for shared mem id's.
  15. * cad02Feb94: Redid flex event user stuff
  16. * cad08Jan94: added ups models, removed run time enabled stuff
  17. * cad28Feb94: added unix-default port name
  18. * rct28Feb94: added EMail items
  19. * pcy04Mar94: Default for overload should be yes
  20. * cad04Mar94: fixes for allowed port names
  21. * cad16Mar94: added pager services, modem stuff
  22. * pcy04Apr94: Implement admin notification
  23. * ram16May94: Added 14400 option for baud rate option & bogus prefill chars.
  24. * in Tests dialog box
  25. * ajr10Jun94: Added LowBatteryShutdownType
  26. * dml26Apr95: Added SMS Mif file creation defs
  27. * ajr31May95: Add network support back for SCO
  28. * djs17May96: Added DarkStar codes
  29. * ntf11Jun96: Added CFG_LEFT_BARGRAPH ... CFG_RIGHT_BARGRAPH
  30. * ntf24Jun96: Changed LEFT to FIRST, MIDDLE to SECOND, ...
  31. * ntf28Jun96: Changed "Input Voltage" to "Utility Voltage"
  32. * pam03Jul96: Added Communication component
  33. * das01Aug96: Added CFG_IGNORE_APPS_LIST, changed ApplicationShutdownEnabled
  34. * to AppShutdownEnabled, added CFG_CABLE_TYPE, added windows
  35. * changes (KLT)
  36. * das01Aug96: Added CFG_SHUTDOWN_SOON_MSG
  37. * jps25Sep96: AppShutdownEnabled -> ApplicationShutdownEnabled (SIR 4339)
  38. * tjg14Oct96: Added COM5-COM8 to CFG_ALLOWED_PORT_NAMES
  39. * tjg21Oct96: Added CFG_HELP_BROWSER and CFG_HELP_PATH
  40. * srt05Nov96: Changed CFG_UPS_SERVER_RESP_TIMEOUT from 30 to 60 secs
  41. * djs05Nov96: Changed default paging modem to COM3
  42. * djs05Nov96: Removed default message for MUPS contact closures
  43. * tjg30Jun97: Added SMTP codes
  44. * dma30Jun97: Updated help link to intro.htm to consolidate identical help files.
  45. * mwh29Aug97: add finder interval config support
  46. * awm25Sep97: Changed STATUSPANECOLOR from white to light grey for main screen revamp
  47. Changed INRANGECOLOR from green to light grey
  48. Changed OUTRANGECOLOR from red to grey
  49. Changed TICKCOLOR to black
  50. * mds29Dec97: Added CFG_SHARE_UPS_CONFIRMED_MODE_ENABLED
  51. * dma23Jan98: Changed default value of CFG_AMB_TEMP_VALUE_HIGH_THRESHOLD to 65, since
  52. * this is the maximum that PowerChute will now allow a user to enter.
  53. * tjg30Jan98: Updated defaults for SMTP mail stuff from No to blank
  54. * daharoni05Feb99: Added CFG_COMMAND_FILE_SHOW_WINDOW
  55. */
  56. #define INCL_BASE
  57. #define INCL_NOPM
  58. #include "cdefine.h"
  59. #include "cfgmgr.h"
  60. #include "icodes.h"
  61. //-------------------------------------------------------------------
  62. // Standard Config codes
  63. struct _ConfigItemList_T ConfigItemList[] = {
  64. {CFG_UPS_SIGNALLING_TYPE, "Ups", "SignallingType", "Smart"},
  65. #if (C_OS & C_UNIX)
  66. {CFG_ALLOWED_PORT_NAMES, "Ups", "AllowedPortNames", "/dev/tty0,/dev/tty1"},
  67. {CFG_UPS_PORT_NAME, "Ups", "PortName", "/dev/tty0"},
  68. #else
  69. {CFG_ALLOWED_PORT_NAMES, "Ups", "AllowedPortNames", "COM1,COM2,COM3,COM4,COM5,COM6,COM7,COM8"},
  70. {CFG_UPS_PORT_NAME, "Ups", "PortName", "COM1"},
  71. #endif
  72. {CFG_UPS_PORT_TYPE, "Ups", "PortType", "Serial"},
  73. {CFG_UPS_PROTOCOL, "Ups", "Protocol", "UpsLink"},
  74. {CFG_UPS_MAX_BATTERY_RUN_TIME, "Ups", "MaxBatteryRunTime", "300"},
  75. #ifdef MULTI_SERVER_SUPPORT
  76. {CFG_UPS_SLAVE_ENABLED, "Ups", "SlaveEnabled", "No"},
  77. {CFG_UPS_MASTER_NAME, "Ups", "MasterName", ""},
  78. #endif
  79. {CFG_UPS_POLL_INTERVAL, "Ups", "UpsPollInterval", "4"},
  80. {CFG_UPS_SERVER_RESP_TIMEOUT, "Ups", "UpsServerResponseTimeout", "60"},
  81. #if (C_OS & (C_NLM | C_DOS))
  82. {CFG_DEVICE_BOARD, "Ups", "BoardNumber", "0"},
  83. {CFG_DEVICE_PORT, "Ups", "PortNumber", "0"},
  84. {CFG_DEVICE_HARDWARE_TYPE, "Ups", "HardwareType", "COM Port"},
  85. #endif
  86. #if (C_OS & C_NLM)
  87. {CFG_NLM_SAP_ENABLED, "Nlm", "SapEnabled", "Yes"},
  88. {CFG_NLM_RUN_PRIORITY, "Nlm", "RunTimePriority", "10"},
  89. {CFG_NLM_EXIT_AFTER_DOWN, "Nlm", "ExitAfterDown", "No"},
  90. {CFG_NLM_OVERRIDE_SIGNAL, "Nlm","OverrideSignal","No"},
  91. #endif
  92. #if (C_OS & (C_NLM | C_DOS | C_WINDOWS))
  93. {CFG_NLM_SPX_TIMEOUT, "Nlm", "SpxTimeout", "30"},
  94. #endif
  95. {CFG_EVENT_LOG_ENABLED, "EventLogging", "EventLogEnabled", "YES"},
  96. #if (C_OS & C_UNIX)
  97. {CFG_EVENT_LOG_NAME, "EventLogging", "EventLogName", "powerchute.log"},
  98. {CFG_BKFTOK_ID,"Ups","VersionId","7"},
  99. #else
  100. {CFG_EVENT_LOG_NAME, "EventLogging", "EventLogName", "pwrchute.log"},
  101. #endif
  102. {CFG_EVENT_LOG_MAX_SIZE, "EventLogging", "EventLogMaxSize", "50000"},
  103. {CFG_EVENT_LOG_ROLL_PCT, "EventLogging", "EventLogRollPercentage", "30"},
  104. {CFG_DATA_LOG_ENABLED, "DataLogging", "DataLogEnabled", "YES"},
  105. #if (C_OS & C_UNIX)
  106. {CFG_MUPS_ENABLED,"Devices","MeasureUps","NO"},
  107. {CFG_DATA_LOG_NAME, "DataLogging", "DataLogName", "powerchute.dat"},
  108. #else
  109. {CFG_DATA_LOG_NAME, "DataLogging", "DataLogName", "pwrchute.dat"},
  110. #endif
  111. {CFG_DATA_LOG_MAX_SIZE, "DataLogging", "DataLogMaxSize", "50000"},
  112. {CFG_DATA_LOG_INTERVAL, "DataLogging", "DataLogInterval", "600"},
  113. {CFG_DATA_LOG_ROLL_PCT, "DataLogging", "DataLogRollPercentage", "30"},
  114. {CFG_MESSAGE_DELAY, "Messaging", "MessageDelay", "5"},
  115. {CFG_MESSAGE_INTERVAL, "Messaging", "MessageInterval", "30"},
  116. {CFG_POWER_FAIL_MSG, "Messaging", "PowerFailMsg", "Power failed"},
  117. {CFG_UNLIMITED_POWER_FAIL_MSG, "Messaging", "UnlimitedPowerFailMsg", "Power failed at server #HOSTNAME#, shutdown is imminent."},
  118. {CFG_POWER_RETURN_MSG, "Messaging", "PowerReturnMessage", "Power returned"},
  119. {CFG_LOW_BATTERY_MSG, "Messaging", "LowBatteryMessage", "Low battery"},
  120. {CFG_RUN_TIME_EXPIRED_MSG, "Messaging", "RuntimeExpiredMessage", "Run time expired"},
  121. {CFG_FINAL_SHUTDOWN_MSG, "Messaging", "FinalShutdownMessage", "System Shutting Down !"},
  122. {CFG_CANCEL_SHUTDOWN_MSG, "Messaging", "CancelShutdownMessage", "Cancel System Shutdown"},
  123. {CFG_PREPARE_SHUTDOWN_MSG, "Messaging", "PrepareShutdownMessage", "Prepare For System Shutting Down"},
  124. {CFG_SHUTDOWN_MSG, "Messaging", "ShutdownWarningMessage", "#HOSTNAME# will shutdown #TIME_REMAINING#"},
  125. {CFG_SHUTDOWN_SOON_MSG, "Messaging", "ShutdownSoonMessage", "#HOSTNAME# will shutdown soon."},
  126. {CFG_POPUPS_ENABLED, "Messaging", "EnablePopups", "Yes"},
  127. {CFG_BRDCAST_ENABLED, "Messaging", "EnableBroadcastMessaging", "NO"},
  128. #if (C_OS & (C_UNIX|C_NLM))
  129. {CFG_ALLOWED_NOTIFY_TYPES, "Messaging", "AllowedNotifyTypes", "All,Some"},
  130. {CFG_NOTIFY_TYPE, "Messaging", "NotifyType", "All"},
  131. #elif (C_OS & C_WIN95)
  132. {CFG_ALLOWED_NOTIFY_TYPES, "Messaging", "AllowedNotifyTypes", "Domain,Some"},
  133. {CFG_NOTIFY_TYPE, "Messaging", "NotifyType", "Domain"},
  134. #else
  135. {CFG_ALLOWED_NOTIFY_TYPES, "Messaging", "AllowedNotifyTypes", "All,Domain,Some"},
  136. {CFG_NOTIFY_TYPE, "Messaging", "NotifyType", "Domain"},
  137. #endif
  138. {CFG_NOTIFY_USER_LIST, "Messaging", "NotifyUsers", ""},
  139. {CFG_ADMIN_NOTIFY_USER_LIST, "Messaging", "AdminNotifyUsers", ""},
  140. {CFG_FLEX_USERS, "EventUsers", "Users", ""},
  141. {CFG_ENABLE_SELF_TESTS, "SelfTests", "EnableSelfTests", "YES"},
  142. {CFG_SELF_TEST_SCHEDULE, "SelfTests", "SelfTestSchedule", "At turn on"},
  143. {CFG_SELF_TEST_DAY, "SelfTests", "SelfTestDay", "MONDAY"},
  144. {CFG_SELF_TEST_TIME, "SelfTests", "SelfTestTime", "8:00 PM"},
  145. {CFG_LAST_SELF_TEST_RESULT, "SelfTests", "LastSelfTestResult", "Unknown"},
  146. {CFG_LAST_SELF_TEST_DAY, "SelfTests", "LastSelfTestDay", "Unknown"},
  147. {CFG_LAST_BATTERY_CALIBRATION_DATE, "BatteryCalibration", "LastCalibrationDate", "Unknown"},
  148. {CFG_LAST_BATTERY_CALIBRATION_RESULT, "BatteryCalibration", "LastCalibrationResult", "No Calibration Test"},
  149. {CFG_BATTERY_CALIBRATION_DAY, "BatteryCalibration", "BatteryCalibrationDay", "MONDAY"},
  150. {CFG_BATTERY_CALIBRATION_TIME, "BatteryCalibration", "BatteryCalibrationTime", "7:00 AM"},
  151. {CFG_BATTERY_CALIBRATION_ENABLED, "BatteryCalibration", "Enabled", "YES"},
  152. {CFG_LOW_BATTERY_SHUTDOWN_DELAY, "Shutdown", "LowBatteryShutdownDelay", "30"},
  153. {CFG_SHUTDOWN_DELAY, "Shutdown", "ShutdownDelay", "300"},
  154. {CFG_ADMIN_SHUTDOWN_DELAY, "Shutdown", "AdminShutdownDelay", "900"},
  155. {CFG_DAILY_SHUTDOWN_ENABLED, "Shutdown", "DailyShutdownEnabled", "NO"},
  156. {CFG_DAILY_SHUTDOWN_TIME, "Shutdown", "DailyShutdownTime", "5:00 PM"},
  157. {CFG_DAILY_WAKE_UP_TIME, "Shutdown", "DailyWakeupTime", "7:00 AM"},
  158. {CFG_WEEKLY_SHUTDOWN_ENABLED, "Shutdown", "WeeklyShutdownEnabled", "NO"},
  159. {CFG_WEEKLY_SHUTDOWN_DAY, "Shutdown", "WeeklyShutdownDay", "Friday"},
  160. {CFG_WEEKLY_SHUTDOWN_TIME, "Shutdown", "WeeklyShutdownTime", "5:00 PM"},
  161. {CFG_WEEKLY_WAKEUP_DAY, "Shutdown", "WeeklyWakeupDay", "Monday"},
  162. {CFG_WEEKLY_WAKEUP_TIME, "Shutdown", "WeeklyWakeupTime", "7:00 AM"},
  163. #if (!(C_OS & C_NLM))
  164. {CFG_LOCAL_BINDERY_ADDRESS, "LanManager", "LOCALBINDERYADDRESS", "c:\\PWRCHUTE\\BINDERY.DAT"},
  165. {CFG_NET_SOCKET_ADDRESS_DATA,"NetWork","NETSOCKETADDRESSData","6547"},
  166. {CFG_NET_SOCKET_ADDRESS_ALERT,"NetWork","NETSOCKETADDRESSALERT","6548"},
  167. {CFG_NET_SOCKET_ADDRESS_BINDERY,"NetWork","NETSOCKETADDRESSBINDERY","6549"},
  168. {CFG_HOST_NAME, "Server", "HostName", "System"},
  169. {CFG_SERVER_PAUSE_ENABLED, "Server", "PAUSEEnabled", "YES"},
  170. {CFG_NET_TCP_SOCKET_ADDRESS_POLL,"NetWork","NETTCPSOCKETADDRESSPOLL","6667"},
  171. {CFG_NET_TCP_SOCKET_ADDRESS_ALERT,"NetWork","NETTCPSOCKETADDRESSALERT","6668"},
  172. {CFG_NET_TCP_SOCKET_ADDRESS_BINDERY,"NetWork","NETTCPSOCKETADDRESSBINDERY","6666"},
  173. {CFG_NET_SPX_SOCKET_ADDRESS_POLL,"NetWork","NETSPXSOCKETADDRESSPOLL","26547"},
  174. {CFG_NET_SPX_SOCKET_ADDRESS_ALERT,"NetWork","NETSPXSOCKETADDRESSALERT","26548"},
  175. {CFG_NET_SPX_SOCKET_ADDRESS_BINDERY,"NetWork","NETSPXSOCKETADDRESSBINDERY","26549"},
  176. {CFG_CLIENT_ADDRESS, "LanManager", "CLIENTADDRESS", "\\PIPE\\SERVRCON"},
  177. {CFG_ALERT_ADDRESS, "LanManager", "ALERTADDRESS", "\\PIPE\\ALERTS"},
  178. {CFG_SERVER_BINDERY_ADDRESS, "LanManager", "SERVERSBINDERYADDRESS", "\\MAILSLOT\\BINDERY"},
  179. {CFG_BINDERY_RESPONSE_ADDRESS, "LanManager", "BINDERYRESPONSEADDRESS", "\\MAILSLOT\\BINDRESP"},
  180. #endif
  181. {CFG_HUMIDITY_ENABLED_LOW_THRESHOLD, "HumiditySensor", "EnableLowThreshold", "NO"},
  182. {CFG_HUMIDITY_ENABLED_HIGH_THRESHOLD, "HumiditySensor", "EnableHighThreshold", "NO"},
  183. {CFG_HUMIDITY_VALUE_LOW_THRESHOLD, "HumiditySensor", "LowThresholdValue", "20"},
  184. {CFG_HUMIDITY_VALUE_HIGH_THRESHOLD, "HumiditySensor", "HighThresholdValue", "80"},
  185. {CFG_AMB_TEMP_ENABLED_LOW_THRESHOLD, "AmbientTemperatureSensor", "EnableLowThreshold", "NO"},
  186. {CFG_AMB_TEMP_ENABLED_HIGH_THRESHOLD, "AmbientTemperatureSensor", "EnableHighThreshold", "NO"},
  187. {CFG_AMB_TEMP_VALUE_LOW_THRESHOLD, "AmbientTemperatureSensor", "LowThresholdValue", "20"},
  188. {CFG_AMB_TEMP_VALUE_HIGH_THRESHOLD, "AmbientTemperatureSensor", "HighThresholdValue", "65"},
  189. {CFG_MUPS_CONTACT1_ENABLED, "ContactSensor1", "Enabled", "NO"},
  190. {CFG_MUPS_CONTACT2_ENABLED, "ContactSensor2", "Enabled", "NO"},
  191. {CFG_MUPS_CONTACT3_ENABLED, "ContactSensor3", "Enabled", "NO"},
  192. {CFG_MUPS_CONTACT4_ENABLED, "ContactSensor4", "Enabled", "NO"},
  193. {CFG_MUPS_CONTACT1_DEFAULT, "ContactSensor1", "DefaultState", "Open"},
  194. {CFG_MUPS_CONTACT2_DEFAULT, "ContactSensor2", "DefaultState", "Open"},
  195. {CFG_MUPS_CONTACT3_DEFAULT, "ContactSensor3", "DefaultState", "Open"},
  196. {CFG_MUPS_CONTACT4_DEFAULT, "ContactSensor4", "DefaultState", "Open"},
  197. {CFG_MUPS_CONTACT1_DESCRIPTION, "ContactSensor1", "Description", ""},
  198. {CFG_MUPS_CONTACT2_DESCRIPTION, "ContactSensor2", "Description", ""},
  199. {CFG_MUPS_CONTACT3_DESCRIPTION, "ContactSensor3", "Description", ""},
  200. {CFG_MUPS_CONTACT4_DESCRIPTION, "ContactSensor4", "Description", ""},
  201. {CFG_TEMPERATURE_UNITS, "UserInterface", "TemperatureUnits", "F"},
  202. {CFG_SOUND_EFFECTS, "UserInterface", "SoundEffects", "OFF"},
  203. {CFG_FREQUENCY_ENABLED_LOW_THRESHOLD, "FrequencySensor", "EnableLowThreshold", "NO"},
  204. {CFG_FREQUENCY_ENABLED_HIGH_THRESHOLD, "FrequencySensor", "EnableHighThreshold", "NO"},
  205. {CFG_FREQUENCY_VALUE_LOW_THRESHOLD, "FrequencySensor", "LowThresholdValue", "55"},
  206. {CFG_FREQUENCY_VALUE_HIGH_THRESHOLD, "FrequencySensor", "HighThresholdValue", "65"},
  207. {CFG_BATTVOLT_ENABLED_LOW_THRESHOLD, "BatteryVoltageSensor", "EnableLowThreshold", "NO"},
  208. {CFG_BATTVOLT_ENABLED_HIGH_THRESHOLD, "BatteryVoltageSensor", "EnableHighThreshold", "NO"},
  209. {CFG_BATTVOLT_VALUE_LOW_THRESHOLD, "BatteryVoltageSensor", "LowThresholdValue", "19"},
  210. {CFG_BATTVOLT_VALUE_HIGH_THRESHOLD, "BatteryVoltageSensor", "HighThresholdValue", "28"},
  211. {CFG_LINE_VOLTAGE_ENABLED_LOW_THRESHOLD, "LineVoltageSensor", "EnableLowThreshold", "NO"},
  212. {CFG_LINE_VOLTAGE_ENABLED_HIGH_THRESHOLD, "LineVoltageSensor", "EnableHighThreshold", "NO"},
  213. {CFG_LINE_VOLTAGE_VALUE_LOW_THRESHOLD, "LineVoltageSensor", "LowThresholdValue", "100"},
  214. {CFG_LINE_VOLTAGE_VALUE_HIGH_THRESHOLD, "LineVoltageSensor", "HighThresholdValue", "130"},
  215. {CFG_MAX_LINEV_ENABLED_LOW_THRESHOLD, "MaxLineVoltageSensor", "EnableLowThreshold", "NO"},
  216. {CFG_MAX_LINEV_ENABLED_HIGH_THRESHOLD, "MaxLineVoltageSensor", "EnableHighThreshold", "NO"},
  217. {CFG_MAX_LINEV_VALUE_LOW_THRESHOLD, "MaxLineVoltageSensor", "LowThresholdValue", "100"},
  218. {CFG_MAX_LINEV_VALUE_HIGH_THRESHOLD, "MaxLineVoltageSensor", "HighThresholdValue", "130"},
  219. {CFG_MIN_LINEV_ENABLED_LOW_THRESHOLD, "MinLineVoltageSensor", "EnableLowThreshold", "NO"},
  220. {CFG_MIN_LINEV_ENABLED_HIGH_THRESHOLD, "MinLineVoltageSensor", "EnableHighThreshold", "NO"},
  221. {CFG_MIN_LINEV_VALUE_LOW_THRESHOLD, "MinLineVoltageSensor", "LowThresholdValue", "100"},
  222. {CFG_MIN_LINEV_VALUE_HIGH_THRESHOLD, "MinLineVoltageSensor", "HighThresholdValue", "130"},
  223. {CFG_PHASE_A_INPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseAInputVoltageSensor", "EnableLowThreshold", "NO"},
  224. {CFG_PHASE_A_INPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD, "PhaseAInputVoltageSensor", "EnableHighThreshold", "NO"},
  225. {CFG_PHASE_A_INPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseAInputVoltageSensor", "LowThresholdValue", "100"},
  226. {CFG_PHASE_A_INPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseAInputVoltageSensor", "HighThresholdValue", "130"},
  227. {CFG_PHASE_B_INPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseBInputVoltageSensor", "EnableLowThreshold", "NO"},
  228. {CFG_PHASE_B_INPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD,"PhaseBInputVoltageSensor", "EnableHighThreshold", "NO"},
  229. {CFG_PHASE_B_INPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseBInputVoltageSensor", "LowThresholdValue", "100"},
  230. {CFG_PHASE_B_INPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseBInputVoltageSensor", "HighThresholdValue", "130"},
  231. {CFG_PHASE_C_INPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseCInputVoltageSensor", "EnableLowThreshold", "NO"},
  232. {CFG_PHASE_C_INPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD,"PhaseCInputVoltageSensor", "EnableHighThreshold", "NO"},
  233. {CFG_PHASE_C_INPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseCInputVoltageSensor", "LowThresholdValue", "100"},
  234. {CFG_PHASE_C_INPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseCInputVoltageSensor", "HighThresholdValue", "130"},
  235. {CFG_OUTPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "OutputVoltageSensor", "EnableLowThreshold", "NO"},
  236. {CFG_OUTPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD, "OutputVoltageSensor", "EnableHighThreshold", "NO"},
  237. {CFG_OUTPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "OutputVoltageSensor", "LowThresholdValue", "100"},
  238. {CFG_OUTPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "OutputVoltageSensor", "HighThresholdValue", "130"},
  239. {CFG_PHASE_A_OUTPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseAOutputVoltageSensor", "EnableLowThreshold", "NO"},
  240. {CFG_PHASE_A_OUTPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD,"PhaseAOutputVoltageSensor", "EnableHighThreshold", "NO"},
  241. {CFG_PHASE_A_OUTPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseAOutputVoltageSensor", "LowThresholdValue", "100"},
  242. {CFG_PHASE_A_OUTPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseAOutputVoltageSensor", "HighThresholdValue", "130"},
  243. {CFG_PHASE_B_OUTPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseBOutputVoltageSensor", "EnableLowThreshold", "NO"},
  244. {CFG_PHASE_B_OUTPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD,"PhaseBOutputVoltageSensor", "EnableHighThreshold", "NO"},
  245. {CFG_PHASE_B_OUTPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseBOutputVoltageSensor", "LowThresholdValue", "100"},
  246. {CFG_PHASE_B_OUTPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseBOutputVoltageSensor", "HighThresholdValue", "130"},
  247. {CFG_PHASE_C_OUTPUT_VOLTAGE_ENABLED_LOW_THRESHOLD, "PhaseCOutputVoltageSensor", "EnableLowThreshold", "NO"},
  248. {CFG_PHASE_C_OUTPUT_VOLTAGE_ENABLED_HIGH_THRESHOLD,"PhaseCOutputVoltageSensor", "EnableHighThreshold", "NO"},
  249. {CFG_PHASE_C_OUTPUT_VOLTAGE_VALUE_LOW_THRESHOLD, "PhaseCOutputVoltageSensor", "LowThresholdValue", "100"},
  250. {CFG_PHASE_C_OUTPUT_VOLTAGE_VALUE_HIGH_THRESHOLD, "PhaseCOutputVoltageSensor", "HighThresholdValue", "130"},
  251. {CFG_UPS_LOAD_ENABLED_LOW_THRESHOLD, "UpsLoadSensor", "EnableLowThreshold", "NO"},
  252. {CFG_UPS_LOAD_ENABLED_HIGH_THRESHOLD, "UpsLoadSensor", "EnableHighThreshold", "Yes"},
  253. {CFG_UPS_LOAD_VALUE_LOW_THRESHOLD, "UpsLoadSensor", "LowThresholdValue", "20"},
  254. {CFG_UPS_LOAD_VALUE_HIGH_THRESHOLD, "UpsLoadSensor", "HighThresholdValue", "100"},
  255. {CFG_UPS_TEMP_ENABLED_LOW_THRESHOLD, "UpsTemperatureSensor", "EnableLowThreshold", "NO"},
  256. {CFG_UPS_TEMP_ENABLED_HIGH_THRESHOLD, "UpsTemperatureSensor", "EnableHighThreshold", "NO"},
  257. {CFG_UPS_TEMP_VALUE_LOW_THRESHOLD, "UpsTemperatureSensor", "LowThresholdValue", "20"},
  258. {CFG_UPS_TEMP_VALUE_HIGH_THRESHOLD, "UpsTemperatureSensor", "HighThresholdValue", "80"},
  259. {CFG_BATTERY_RUN_TIME_VALUE_LOW_THRESHOLD,"BatteryRunTimeSensor","LowThresholdValue","300"},
  260. {CFG_BATTERY_RUN_TIME_VALUE_HIGH_THRESHOLD,"BatteryRunTimeSensor","HighThresholdValue","6000"},
  261. {CFG_ALLOWED_ALARM_DELAYS, "AlarmDelaySensor", "AllowedValues", "0,T,L,N"},
  262. {CFG_ALLOWED_HIGH_TRANSFER_VOLTAGES, "HighTransferVoltageSensor", "AllowedValues", "129,132,135,138"},
  263. {CFG_ALLOWED_LOW_TRANSFER_VOLTAGES, "LowTransferVoltageSensor", "AllowedValues", "097,100,103,106"},
  264. {CFG_ALLOWED_LOW_BATTERY_DURATIONS, "LowBatteryDurationSensor", "AllowedValues", "02,05,07,10"},
  265. {CFG_ALLOWED_MIN_RETURN_CAPACITIES, "MinReturnCapacitySensor", "AllowedValues", "00,10,25,90"},
  266. {CFG_ALLOWED_RATED_OUTPUT_VOLTAGES, "RatedOutputVoltageSensor", "AllowedValues", "115"},
  267. {CFG_ALLOWED_SELF_TEST_SCHEDULES, "SelfTestScheduleSensor", "AllowedValues", "ON ,OFF"},
  268. {CFG_ALLOWED_SHUTDOWN_DELAYS, "ShutdownDelaySensor", "AllowedValues", "020,180,300,600"},
  269. {CFG_ALLOWED_TURN_OFF_DELAYS, "TurnoffDelaySensor", "AllowedValues", "00,02,05,10"},
  270. {CFG_ALLOWED_TURN_ON_DELAYS, "TurnonDelaySensor", "AllowedValues", "000,060,180,300"},
  271. {CFG_ALLOWED_SENSITIVITIES, "UpsSensitivitySensor", "AllowedValues", "H,M,L"},
  272. {CFG_ALLOWED_RUN_TIMES_AFTER_LOW_BATTERY, "RunTimeAfterLowBatterySensor", "AllowedValues", "02,05,08,NO"},
  273. {CFG_COMMAND_FILE_DELAY, "CommandFiles", "CommandFileDelay", "0"},
  274. {CFG_AUTO_UPS_REBOOT_ENABLED, "Ups", "AutoUpsRebootEnabled", "YES"},
  275. {CFG_BATTERY_AGE_LIMIT, "Ups", "BatteryAgeLimit", "1"},
  276. {CFG_BATTERY_REPLACEMENT_DATE, "Ups", "BatteryReplacementDate", "N/A"},
  277. {CFG_ERROR_LOG_ENABLED, "ErrorLogging", "ErrorLogEnabled", "YES"},
  278. #if (C_OS & C_UNIX)
  279. {CFG_ERROR_LOG_NAME, "ErrorLogging", "ErrorLogName", "powerchute.err"},
  280. #else
  281. {CFG_ERROR_LOG_NAME, "ErrorLogging", "ErrorLogName", "pwrchute.err"},
  282. #endif
  283. {CFG_ERROR_LOG_MAX_SIZE, "ErrorLogging", "ErrorLogMaxSize", "50000"},
  284. {CFG_ERROR_LOG_ROLL_PCT, "ErrorLogging", "ErrorLogRollPercentage", "30"},
  285. {CFG_PAGER_ENABLED, "Pager", "Enabled", "Yes"},
  286. {CFG_PAGER_DELAY, "Pager", "Delay", "10"},
  287. {CFG_PAGER_RETRIES, "Pager", "Retries", "1"},
  288. {CFG_PAGER_SERVICE_LIST, "Pager", "Services", ""},
  289. #if (C_OS & C_UNIX)
  290. {CFG_MODEM_PORT_NAME, "Modem", "PortName", "/dev/tty1"},
  291. #else
  292. {CFG_MODEM_PORT_NAME, "Modem", "PortName", "COM3"},
  293. #endif
  294. {CFG_MODEM_ENABLED, "Modem", "Enabled", "No"},
  295. {CFG_MODEM_INIT_STRING, "Modem", "InitializationString", ""},
  296. {CFG_MODEM_DIAL_TYPE, "Modem", "DialType", "Tone"},
  297. {CFG_MODEM_DRIVER_TYPE, "Modem", "HardwareType", "1"},
  298. {CFG_MODEM_PORT_NUMBER, "Modem", "PortNumber", "0"},
  299. {CFG_MODEM_BOARD_NUMBER, "Modem", "BoardNumber", "1"},
  300. {CFG_MODEM_BAUD_RATE, "Modem", "BaudRate", "2400"},
  301. {CFG_MODEM_ALLOWED_BAUD_RATES, "Modem", "AllowedBaudRates",
  302. "300,1200,2400,9600,14400,19200"},
  303. {CFG_EMAIL_ENABLED, "EMail", "Enabled", "No"},
  304. {CFG_EMAIL_DELAY, "EMail", "MessageDelay", "10"},
  305. {CFG_EMAIL_FILE_PATH, "Email", "FilePath", "SYS:MHS\\MAIL\\SND"},
  306. #if (C_OS & C_WIN95)
  307. {CFG_EMAIL_LOGIN_NAME, "Email", "LoginName", "pwrchute"},
  308. #else
  309. {CFG_EMAIL_LOGIN_NAME, "Email", "LoginName", ""},
  310. #endif
  311. {CFG_EMAIL_USER_LIST, "Email", "Users", ""},
  312. {CFG_EMAIL_HEADER, "Email", "Header", "Message from PowerChute@#HOSTNAME#:"},
  313. {CFG_EMAIL_PASSWORD, "Email", "Password", ""},
  314. {CFG_EMAIL_TYPE, "Email", "SMFType", "SMF-71"},
  315. {CFG_EMAIL_SMTP_SERVER, "Email", "SmtpServerName", " "},
  316. {CFG_EMAIL_SMTP_ACCOUNT, "Email", "SmtpAccount", " "},
  317. {CFG_EMAIL_SMTP_DOMAIN, "Email", "SmtpDomain", " "},
  318. {CFG_SHARE_UPS_CONFIRMED_MODE_ENABLED, "ShareUps", "ConfirmedModeEnabled","No"},
  319. #if (!(C_OS & C_NLM))
  320. {CFG_TEMPERATURE_UNITS, "UserInterface", "TemperatureUnits", "Fahrenheit"},
  321. {CFG_INDICATOR_COLOR, "UserInterface", "INDICATORCOLOR", "Black"},
  322. #if (C_OS & C_DOS)
  323. {CFG_BORDER_COLOR, "UserInterface", "BORDERCOLOR", "White"},
  324. {CFG_TICK_COLOR, "UserInterface", "TICKCOLOR", "Black"},
  325. #else
  326. {CFG_BORDER_COLOR, "UserInterface", "BORDERCOLOR", "Black"},
  327. {CFG_TICK_COLOR, "UserInterface", "TICKCOLOR", "Black"},
  328. #endif
  329. {CFG_IN_RANGE_COLOR, "UserInterface", "INRANGECOLOR", "LightGray"},
  330. {CFG_OUT_OF_RANGE_COLOR, "UserInterface", "OUTOFRANGECOLOR", "Gray"},
  331. #if (C_OS & C_DOS)
  332. {CFG_DATA_COLOR, "UserInterface", "DataCOLOR", "Cyan"},
  333. {CFG_LABEL_COLOR, "UserInterface", "LABELCOLOR", "White"},
  334. #else
  335. {CFG_DATA_COLOR, "UserInterface", "DataCOLOR", "Blue"},
  336. {CFG_LABEL_COLOR, "UserInterface", "LABELCOLOR", "Black"},
  337. #endif
  338. {CFG_DISABLED_COLOR, "UserInterface", "DISABLEDCOLOR", "LightGray"},
  339. #if (C_OS & ( C_WIN311 | C_WINDOWS | C_NT ) )
  340. {CFG_WINDOW_COLOR, "UserInterface", "WINDOWCOLOR", "LightGray"},
  341. #elif (C_OS & C_DOS)
  342. {CFG_WINDOW_COLOR, "UserInterface", "WINDOWCOLOR", "Blue"},
  343. #else
  344. {CFG_WINDOW_COLOR, "UserInterface", "WINDOWCOLOR", "204,204,204"},
  345. #endif
  346. #if (C_OS & C_DOS)
  347. {CFG_LIGHT_SHADOW_COLOR, "UserInterface","LIGHTSHADOWCOLOR","White"},
  348. {CFG_DARK_SHADOW_COLOR, "UserInterface", "DARKSHADOWCOLOR", "LightGray"},
  349. {CFG_STATUS_PANE_COLOR, "UserInterface", "STATUSPANECOLOR", "Blue"},
  350. {CFG_EVENT_PANE_COLOR, "UserInterface", "EventPANECOLOR", "Blue"},
  351. {CFG_ERROR_COLOR, "UserInterface", "ErrorCOLOR", "Red"},
  352. {CFG_WARNING_COLOR, "UserInterface", "WARNINGCOLOR", "Magenta"},
  353. #else
  354. {CFG_LIGHT_SHADOW_COLOR, "UserInterface","LIGHTSHADOWCOLOR","224,224,224"},
  355. {CFG_DARK_SHADOW_COLOR, "UserInterface", "DARKSHADOWCOLOR", "DarkGray"},
  356. {CFG_STATUS_PANE_COLOR, "UserInterface", "STATUSPANECOLOR", "LightGray"},
  357. {CFG_EVENT_PANE_COLOR, "UserInterface", "EventPANECOLOR", "LightGray"},
  358. {CFG_ERROR_COLOR, "UserInterface", "ErrorCOLOR", "Red"},
  359. {CFG_WARNING_COLOR, "UserInterface", "WARNINGCOLOR", "Yellow"},
  360. #endif
  361. #endif
  362. {CFG_UPS_MODEL_BASE+(INT)('2'), "UPSModel", "2", "Smart-UPS 250"},
  363. {CFG_UPS_MODEL_BASE+(INT)('3'), "UPSModel", "3", "Smart-UPS 400"},
  364. {CFG_UPS_MODEL_BASE+(INT)('4'), "UPSModel", "4", "Smart-UPS 400"},
  365. {CFG_UPS_MODEL_BASE+(INT)('6'), "UPSModel", "6", "Smart-UPS 600"},
  366. {CFG_UPS_MODEL_BASE+(INT)('7'), "UPSModel", "7", "Smart-UPS 900"},
  367. {CFG_UPS_MODEL_BASE+(INT)('8'), "UPSModel", "8", "Smart-UPS 1250"},
  368. {CFG_UPS_MODEL_BASE+(INT)('9'), "UPSModel", "9", "Smart-UPS 2000"},
  369. {CFG_UPS_MODEL_BASE+(INT)('0'), "UPSModel", "0", "Matrix 3000"},
  370. {CFG_UPS_MODEL_BASE+(INT)('5'), "UPSModel", "5", "Matrix 5000"},
  371. {CFG_UPS_MODEL_BASE+(INT)('A'), "UPSModel", "A", "Smart-UPS 1400"},
  372. {CFG_UPS_MODEL_BASE+(INT)('B'), "UPSModel", "B", "Smart-UPS 1000"},
  373. {CFG_UPS_MODEL_BASE+(INT)('C'), "UPSModel", "C", "Smart-UPS 650"},
  374. {CFG_UPS_MODEL_BASE+(INT)('D'), "UPSModel", "D", "Smart-UPS 420"},
  375. {CFG_UPS_MODEL_BASE+(INT)('E'), "UPSModel", "E", "Smart-UPS 280"},
  376. {CFG_UPS_MODEL_BASE+(INT)('F'), "UPSModel", "F", "Smart-UPS 450"},
  377. {CFG_UPS_MODEL_BASE+(INT)('G'), "UPSModel", "G", "Smart-UPS 700"},
  378. {CFG_UPS_MODEL_BASE+(INT)('H'), "UPSModel", "H", "Smart-UPS 700XL"},
  379. {CFG_UPS_MODEL_BASE+(INT)('I'), "UPSModel", "I", "Smart-UPS 1000"},
  380. {CFG_UPS_MODEL_BASE+(INT)('J'), "UPSModel", "J", "Smart-UPS 1000XL"},
  381. {CFG_UPS_MODEL_BASE+(INT)('K'), "UPSModel", "K", "Smart-UPS 1400"},
  382. {CFG_UPS_MODEL_BASE+(INT)('L'), "UPSModel", "L", "Smart-UPS 1400XL"},
  383. {CFG_UPS_MODEL_BASE+(INT)('M'), "UPSModel", "M", "Smart-UPS 2200"},
  384. {CFG_UPS_MODEL_BASE+(INT)('N'), "UPSModel", "N", "Smart-UPS 2200XL"},
  385. {CFG_UPS_MODEL_BASE+(INT)('O'), "UPSModel", "O", "Smart-UPS 3000"},
  386. {CFG_UPS_MODEL_BASE+(INT)('P'), "UPSModel", "P", "Smart-UPS 5000"},
  387. // BACKUPS_FIRMWARE_REV has been define as 'Q' in backups.cxx
  388. {CFG_UPS_MODEL_BASE+(INT)('Q'), "UPSModel", "Q", "Back-UPS"},
  389. {CFG_TRANSPORTS, "Transports", "0" , "NamedPipes"},
  390. {CFG_DEVICES, "Devices", "0", "Ups"},
  391. {CFG_USERS, "Users", "0", "Ups"},
  392. {CFG_BATTERY_RUN_TIME_ENABLED,"Ups","BatteryRuntimeEnabled","YES"},
  393. {CFG_UPSOFF_FILE,"Shutdown","UpsOffFile","/upsoff.cmd"},
  394. {CFG_UPSOFF_PATH,"Shutdown","UpsOffPath","0"},
  395. {CFG_LOWBAT_SHUTDOWN_TYPE,"Shutdown","LowBatteryShutdownType", "Normal"},
  396. {CFG_SERVER_SECURITY,"Server","Security","Yes"},
  397. #if C_OS & C_WIN311
  398. //(SRT){CFG_MACRO_FILE_NAME,"MacroRecorder","MacroFileName","c:\\pwrchute\\macros.ini"},
  399. // KLT Added 9/9/94 for LITE
  400. {CFG_NOTIFY_DELAY, "LineFail", "NotifyDelay", "5"},
  401. {CFG_NOTIFY_INTERVAL, "LineFail", "NotifyInterval", "30"},
  402. {CFG_NOTIFY_SHUTDOWN_DELAY, "LineFail", "ShutdownDelay", "300"},
  403. {CFG_NOTIFY_ACTIONS, "LineFail", "Actions", "LUS"},
  404. #endif
  405. {CFG_CABLE_TYPE, "Ups", "CableType", "Normal"},
  406. #if (C_OS & C_OS2)
  407. {CFG_SERVER_NETVIEW,"Ups","NetViewAlerts","No"},
  408. #endif
  409. #if (C_OS & C_INTERACTIVE)
  410. {CFG_USE_TCP, "Network","UseTCP","No"},
  411. #else
  412. {CFG_USE_TCP, "Network","UseTCP","Yes"},
  413. #endif
  414. {CFG_GENERATE_MIF_FILE,"Server","GenerateMif","Yes"},
  415. {CFG_MIF_DIRECTORY,"Server","MifDirectory",""},
  416. {CFG_FIRST_BARGRAPH, "UserInterface", "FirstBarGraphType", "Utility Voltage"},
  417. {CFG_SECOND_BARGRAPH, "UserInterface", "SecondBarGraphType", "Output Voltage"},
  418. {CFG_THIRD_BARGRAPH, "UserInterface", "ThirdBarGraphType", "Battery Capacity"},
  419. #if (C_OS & C_NT)
  420. {CFG_COMM_RPC, "Communication", "Rpc", "Yes"},
  421. {CFG_COMM_TCPIP, "Communication", "TcpIp", "Yes"},
  422. {CFG_COMM_IPXSPX, "Communication", "IpxSpx", "Yes"},
  423. {CFG_COMM_NP, "Communication", "NamePipe", "Yes"},
  424. {CFG_COMM_RPC_FINDER_INTERVAL, "Communication", "RpcFinderInterval", "4000"},
  425. {CFG_COMM_TCP_FINDER_INTERVAL, "Communication", "TcpFinderInterval", "4000"},
  426. {CFG_COMM_IPX_FINDER_INTERVAL, "Communication", "IpxFinderInterval", "4000"},
  427. {CFG_COMM_NP_FINDER_INTERVAL, "Communication", "NpFinderInterval", "4000"},
  428. {CFG_PREPARE_FOR_SHUTDOWN_DELAY, "PrepareForShutdown", "ShutdownDelay", "60"},
  429. {CFG_APP_SHUTDOWN_TIMER, "AppShutDownTimer","AppShutDownTimerValue","6"},
  430. {CFG_DATASAFE_ENABLED, "PrepareForShutdown", "ApplicationShutdownEnabled", "YES"},
  431. {CFG_IGNORE_APPS_LIST,"PrepareForShutdown","AppsToIgnore",""},
  432. // The default path for help browser and files is %PWRCHUTE%\help
  433. {CFG_HELP_VIEWER, "Help", "BrowserPath", "help\\iexplore.exe"},
  434. {CFG_HELP_FILENAME, "Help", "File", "help\\intro.htm"},
  435. // New code implemented in PC+ v5.0.1.3, by default will show DOS window when
  436. // executing a command file.
  437. {CFG_COMMAND_FILE_SHOW_WINDOW, "CommandFile", "ShowWindow", "Yes"},
  438. #endif
  439. { LAST_ENTRY, "0", "0", ""}
  440. };