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.

272 lines
20 KiB

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include <windows.h>
  4. #include "resource.h"
  5. #include "cmdlineres.h"
  6. #include "cmdline.rc"
  7. /////////////////////////////////////////////////////////////////////////////
  8. //
  9. // String Table
  10. //
  11. STRINGTABLE DISCARDABLE
  12. BEGIN
  13. IDS_ON "ON"
  14. IDS_OFF "OFF"
  15. IDS_HIBER_INVALID_STATE "Hibernation state must be ""on"" or ""off""\n"
  16. IDS_GLOBAL_FLAG_INVALID_STATE "Global Flag state must be ""on"" or ""off""\n"
  17. IDS_GLOBAL_FLAG_INVALID_FLAG "Global Flag must be one of ""BATTERYICON"", ""MULTIBATTERY"",""RESUMEPASSWORD"", ""WAKEONRING"", ""VIDEODIM""\n"
  18. IDS_HIBER_UNSUPPORTED "System does not support hibernation\n"
  19. IDS_HIBER_CONFIG_FAIL "Unable to configure hibernation file\n"
  20. IDS_SYSCAP_FAIL "Unable to determine system capabilities\n"
  21. IDS_INVALID_CMDLINE_PARAM "Invalid Parameters -- try ""/?"" for help\n"
  22. IDS_OUT_OF_MEMORY "Out of Memory\n"
  23. IDS_SCHEME_NOT_FOUND "Scheme Not Found\n"
  24. IDS_ACTIVE_SCHEME_INVALID "Active Power Scheme is Invalid\n"
  25. IDS_SCHEME_ALREADY_EXISTS "A scheme with that name already exists\n"
  26. IDS_SCHEME_CREATE_FAIL "Unable to create a new power scheme\n"
  27. IDS_INVALID_NUMERICAL_IMPORT "A scheme name must be specified when creating a new scheme.\nEither specify an existing scheme number or do not use /NUMERICAL.\n"
  28. END
  29. STRINGTABLE DISCARDABLE
  30. BEGIN
  31. IDS_SCHEME_NAME "Name %s\n"
  32. IDS_SCHEME_DESCRIPTION "Description %s\n" // unused
  33. IDS_MONITOR_TIMEOUT_AC "Turn off monitor (AC) "
  34. IDS_MONITOR_TIMEOUT_DC "Turn off monitor (DC) "
  35. IDS_DISK_TIMEOUT_AC "Turn off hard disks (AC) "
  36. IDS_DISK_TIMEOUT_DC "Turn off hard disks (DC) "
  37. IDS_STANDBY_TIMEOUT_AC "System standby (AC) "
  38. IDS_STANDBY_TIMEOUT_DC "System standby (DC) "
  39. IDS_HIBER_TIMEOUT_AC "System hibernates (AC) "
  40. IDS_HIBER_TIMEOUT_DC "System hibernates (DC) "
  41. END
  42. STRINGTABLE DISCARDABLE
  43. BEGIN
  44. IDS_USAGE_START "\n"
  45. IDS_USAGE_01 "POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name |\n"
  46. IDS_USAGE_02 " /SETACTIVE name | /CHANGE name settings |\n"
  47. IDS_USAGE_03 " /HIBERNATE {ON|OFF} | /EXPORT name [/FILE filename] |\n"
  48. IDS_USAGE_04 " /IMPORT name [/FILE filename] | /GLOBALPOWERFLAG {ON|OFF} /OPTION flag |\n"
  49. IDS_USAGE_04_1 " /BATTERYALARM {LOW|CRITICAL} [settings] | /?]\n"
  50. IDS_USAGE_05 "\n"
  51. IDS_USAGE_06 "Description:\n"
  52. IDS_USAGE_07 " This command line tool enables an administrator to control\n"
  53. IDS_USAGE_08 " the power settings on a system.\n"
  54. IDS_USAGE_09 "\n"
  55. IDS_USAGE_10 "Parameter List:\n"
  56. IDS_USAGE_11 " /LIST, /L Lists the names of existing power schemes.\n"
  57. IDS_USAGE_12 " /QUERY, /Q Displays the configuration of the specified power scheme.\n"
  58. IDS_USAGE_13 " If no name is specified, the configuration of the currently\n"
  59. IDS_USAGE_14 " active power scheme is displayed.\n"
  60. IDS_USAGE_15 " /CREATE, /C Creates a power scheme with the specified name. The new\n"
  61. IDS_USAGE_16 " scheme is created with the properties of the currently\n"
  62. IDS_USAGE_17 " active scheme.\n"
  63. IDS_USAGE_18 " /DELETE, /D Deletes the power scheme with the specified name.\n"
  64. IDS_USAGE_19 " /SETACTIVE, /S Makes the power scheme with the specified name active.\n"
  65. IDS_USAGE_20 " /CHANGE, /X Changes settings of the specified power scheme. Additional\n"
  66. IDS_USAGE_21 " switches specify the changes as follows:\n"
  67. IDS_USAGE_22 " /monitor-timeout-ac <minutes>\n"
  68. IDS_USAGE_23 " /monitor-timeout-dc <minutes>\n"
  69. IDS_USAGE_24 " /disk-timeout-ac <minutes>\n"
  70. IDS_USAGE_25 " /disk-timeout-dc <minutes>\n"
  71. IDS_USAGE_26 " /standby-timeout-ac <minutes>\n"
  72. IDS_USAGE_27 " /standby-timeout-dc <minutes>\n"
  73. IDS_USAGE_28 " /hibernate-timeout-ac <minutes>\n"
  74. IDS_USAGE_29 " /hibernate-timeout-dc <minutes>\n"
  75. IDS_USAGE_30 " /processor-throttle-ac <throttle>\n"
  76. IDS_USAGE_31 " /processor-throttle-dc <throttle>\n"
  77. IDS_USAGE_32 " AC settings are used when the system is on AC power.\n"
  78. IDS_USAGE_33 " DC settings are used when the system is on battery power.\n"
  79. IDS_USAGE_34 " Setting a timeout to zero will disable the corresponding\n"
  80. IDS_USAGE_35 " timeout feature. Supported throttle settings are NONE\n"
  81. IDS_USAGE_36 " CONSTANT, DEGRADE, and ADAPTIVE.\n"
  82. IDS_USAGE_37 " /EXPORT, /E Exports the power scheme with the specified name to a\n"
  83. IDS_USAGE_38 " file. If no filename is specified, the default is \n"
  84. IDS_USAGE_39 " SCHEME.POW. This additional parameter is supported:\n"
  85. IDS_USAGE_40 " /FILE <filename>\n"
  86. IDS_USAGE_41 " /IMPORT, /I Imports the power scheme from a file under the specified\n"
  87. IDS_USAGE_42 " name. If no filename is specified, the default is\n"
  88. IDS_USAGE_43 " SCHEME.POW. If a scheme with that name already exists, it\n"
  89. IDS_USAGE_44 " is replaced with the new one. This additional parameter\n"
  90. IDS_USAGE_45 " is supported:\n"
  91. IDS_USAGE_46 " /FILE <filename>\n"
  92. IDS_USAGE_47 " /HIBERNATE, /H Turns the hibernation feature on/off. Hibernation timeout\n"
  93. IDS_USAGE_48 " is not supported on all systems that support hibernation\n"
  94. IDS_USAGE_49 " /NUMERICAL, /N Allows the power scheme to be operated upon to be specified\n"
  95. IDS_USAGE_50 " using a numerical identifier. When using this switch, in\n"
  96. IDS_USAGE_51 " place of the name of the power scheme on the command line,\n"
  97. IDS_USAGE_52 " specify its numerical identifier. This switch may be used\n"
  98. IDS_USAGE_53 " in combination with the /QUERY, /DELETE, /SETACTIVE,\n"
  99. IDS_USAGE_54 " /CHANGE, /EXPORT, and /IMPORT commands.\n"
  100. IDS_USAGE_55 " /GLOBALPOWERFLAG, /G {ON|OFF} Turns one of the global power flags on/off.\n Valid flags (to be used after ""/OPTION "") are:\n"
  101. IDS_USAGE_56 " BATTERYICON: Turns the battery meter icon in the\n system tray on/off.\n"
  102. IDS_USAGE_57 " MULTIBATTERY: Turns on/off multiple battery display\n in system Power Meter.\n"
  103. IDS_USAGE_58 " RESUMEPASSWORD: Prompt for password on resuming the\n system.\n"
  104. IDS_USAGE_59 " WAKEONRING: Turn on/off wake on ring support.\n"
  105. IDS_USAGE_60 " VIDEODIM: Turn on/off support for dimming video\n display on battery power.\n"
  106. IDS_USAGE_60_01 " /AVAILABLESLEEPSTATES, /A Reports the sleep states available on the\n system. Attempts to report reasons why sleep states are\n unavailable.\n"
  107. IDS_USAGE_60_02 " /BATTERYALARM, /B {LOW|CRITICAL} Displays or configures the specified\n battery alarm. Using this option without any switches will\n display the current settings.\n The following switches can be specified:\n"
  108. IDS_USAGE_60_03 " /activate <on|off>\n Enables or disables the alarm.\n"
  109. IDS_USAGE_60_04 " /level <percentage (0 - 100)>\n The alarm will be activated when the power level\n reaches this percentage.\n"
  110. IDS_USAGE_60_05 " /text <on|off>\n Turns the text notification on or off.\n"
  111. IDS_USAGE_60_06 " /sound <on|off>\n Turns the audible notification on or off.\n"
  112. IDS_USAGE_60_07 " /action <none|shutdown|hibernate|standby>\n Specifies the action to take when this alarm goes\n off. Not all actions are always available.\n"
  113. IDS_USAGE_60_08 " /forceaction <on|off>\n Force stand by or shutdown even if a program stops\n responding.\n"
  114. IDS_USAGE_60_09 " /program <on|off>\n Specifies whether the system will run a program\n when the alarm goes off. When this option is used,\n the output will be the taskname that can be used\n with schtasks.exe /change to configure the program.\n"
  115. IDS_USAGE_61 " /HELP, /? Displays information on command-line parameters.\n"
  116. IDS_USAGE_62 "\n"
  117. IDS_USAGE_63 "Examples:\n"
  118. IDS_USAGE_64 " POWERCFG /LIST\n"
  119. IDS_USAGE_65 " POWERCFG /QUERY scheme\n"
  120. IDS_USAGE_66 " POWERCFG /QUERY\n"
  121. IDS_USAGE_67 " POWERCFG /CREATE scheme\n"
  122. IDS_USAGE_68 " POWERCFG /DELETE scheme\n"
  123. IDS_USAGE_69 " POWERCFG /SETACTIVE scheme\n"
  124. IDS_USAGE_70 " POWERCFG /CHANGE scheme /monitor-timeout-dc 15\n"
  125. IDS_USAGE_71 " POWERCFG /CHANGE scheme /monitor-timeout-dc 0\n"
  126. IDS_USAGE_72 " POWERCFG /HIBERNATE on\n"
  127. IDS_USAGE_73 " POWERCFG /EXPORT scheme /file file\n"
  128. IDS_USAGE_74 " POWERCFG /QUERY number /NUMERICAL\n"
  129. IDS_USAGE_75 " POWERCFG /GLOBALPOWERFLAG on /OPTION BATTERYICON\n"
  130. IDS_USAGE_76 " POWERCFG /AVAILABLESLEEPSTATES\n"
  131. IDS_USAGE_77 " POWERCFG /BATTERYALARM low\n"
  132. IDS_USAGE_78 " POWERCFG /BATTERYALARM critical /ACTIVATE on /LEVEL 6 /ACTION hibernate\n"
  133. IDS_USAGE_END "\n"
  134. END
  135. STRINGTABLE DISCARDABLE
  136. BEGIN
  137. IDS_LIST_HEADER1 "\nExisting Power Schemes\n"
  138. IDS_LIST_HEADER2 "----------------------\n"
  139. IDS_QUERY_HEADER1 "\nField Description Value\n"
  140. IDS_QUERY_HEADER2 "----------------- -----\n"
  141. IDS_QUERY_FOOTER "\nNote that a timeout value of zero represents a disabled timeout feature.\n" // unused
  142. IDS_UNEXPECTED_ERROR "An unexpected error condition has occurred. Unable to perform operation. You may not have permission to perform this operation.\n"
  143. IDS_HIBER_OUT_OF_RANGE "The hibernation timeout must be at least as long as the standby timeout.\n"
  144. IDS_MINUTES "After %lu mins\n"
  145. IDS_DISABLED "Never\n"
  146. IDS_UNSUPPORTED "Not Supported\n"
  147. IDS_STANDBY_WARNING "WARNING: System does not support standby\n"
  148. IDS_HIBER_WARNING "WARNING: System may not support waking from standby in order to hibernate\n"
  149. IDS_MONITOR_WARNING "WARNING: System does not support monitor power saving\n"
  150. IDS_DISK_WARNING "WARNING: System does not support disk power saving\n"
  151. IDS_HIBER_PRIVILEGE "No permission to enable/disable hibernation file\n"
  152. IDS_DEFAULT_FILENAME "SCHEME.POW"
  153. IDS_THROTTLE_AC "Processor Throttle (AC) "
  154. IDS_THROTTLE_DC "Processor Throttle (DC) "
  155. IDS_THROTTLE_NONE "NONE\n"
  156. IDS_THROTTLE_CONSTANT "CONSTANT\n"
  157. IDS_THROTTLE_DEGRADE "DEGRADE\n"
  158. IDS_THROTTLE_ADAPTIVE "ADAPTIVE\n"
  159. IDS_THROTTLE_UNKNOWN "UNKNOWN\n"
  160. IDS_DLL_LOAD_ERROR "Unable to load POWRPROF.DLL\n"
  161. IDS_DLL_PROC_ERROR "Unable to use POWRPROF.DLL\n"
  162. IDS_SCHEME_ID "Numerical ID %u\n"
  163. END
  164. STRINGTABLE DISCARDABLE
  165. BEGIN
  166. IDS_HIBER_FAILED_DESCRIPTION_HEADER "Hibernation failed with the following error: %s\nThe following items are preventing hibernation on this system.\n"
  167. IDS_HIBER_REASON_NONE "\tThere are no reported reasons hibernation does not work. Ensure that you have permission to enable hibernation on this system.\n"
  168. IDS_HIBER_REASON_NOBIOS "\tThe system does not support hibernation.\n"
  169. IDS_HIBER_REASON_BIOSINCOMPAT "\tThe system firmware support hibernation, but it does not work properly.\n"
  170. IDS_HIBER_REASON_NOOSPM "\tThe system doesn't support hibernation.\n"
  171. IDS_HIBER_REASON_LEGDRV "\tThere are one or more legacy drivers installed: %s\n"
  172. IDS_HIBER_REASON_HIBERSTACK "\tThe storage drivers do not support hibernation.\n"
  173. IDS_HIBER_REASON_HIBERFILE "\tThe system could not create the hibernation file. The specific error code is 0x%x.\n"
  174. IDS_HIBER_REASON_POINTERAL "\tAn internal error occurred. The specific error code is 0x%x.\n"
  175. IDS_HIBER_REASON_PAEMODE "\tThe system is running in PAE mode, and hibernation is not allowed in PAE mode.\n"
  176. IDS_HIBER_REASON_MPOVERRIDE "\tThe system has more than one processor and hibernate will not work properly because of this.\n"
  177. IDS_HIBER_REASON_DRIVERDOWNGRADE "\tThe VGAPNP.SYS driver specifically disallows hibernation. Check for a more appropriate video driver to enable hibernation.\n"
  178. IDS_HIBER_REASON_UNKNOWN "\tAn unknown error occurred while enabling hibernation.\n"
  179. IDS_SX_REASON_NONE "\tThere are no reported reasons for the sleep state to not work.\n"
  180. IDS_SX_REASON_NOBIOS "\tThe system firmware does not support this standby state.\n"
  181. IDS_SX_REASON_BIOSINCOMPAT "\tThe system firmware support this standby state, but it does not work properly.\n"
  182. IDS_SX_REASON_NOOSPM "\tThe standby state is not supported on this system. ACPI is not enabled or not supported on this system.\n"
  183. IDS_SX_REASON_LEGDRV "\tThere are one or more legacy drivers installed which prevent this standby state: %s\n"
  184. IDS_SX_REASON_HIBERSTACK "\tSHOULD NOT OCCUR.\n"
  185. IDS_SX_REASON_HIBERFILE "\tSHOULD NOT OCCUR.\n"
  186. IDS_SX_REASON_POINTERAL "\tSHOULD NOT OCCUR.\n"
  187. IDS_SX_REASON_PAEMODE "\tThe system is running in PAE mode, and this standby state is not allowed in PAE mode.\n"
  188. IDS_SX_REASON_MPOVERRIDE "\tThe system has more than one processor and this standby state will not work properly because of this.\n"
  189. IDS_SX_REASON_DRIVERDOWNGRADE "\tThe VGAPNP.SYS display driver does not support standby. Please consult your hardware vendor for an updated display driver.\n"
  190. IDS_SX_REASON_UNKNOWN "\tAn unknown error occurred while enabling hibernation.\n"
  191. IDS_SX_REASON_NOOSPM_IA64 "\tThe system doesn't support this standby state.\n"
  192. IDS_HIBER_REASON_NOOSPM_IA64 "\tThe system doesn't support hibernation.\n"
  193. IDS_BASE_S1_HEADER "Standby (S1)"
  194. IDS_BASE_S2_HEADER "Standby (S2)"
  195. IDS_BASE_S3_HEADER "Standby (S3)"
  196. IDS_CANTGETSLEEPSTATES "Unable to retreive the supported sleep states on the system."
  197. IDS_CANTGETSSTATEREASONS "Unable to retreive verbose reasons why sleep states are unavailabe on this system."
  198. IDS_SLEEPSTATES_AVAILABLE "The following sleep states are available on this system:"
  199. IDS_SLEEPSTATES_UNAVAILABLE "The following sleep states are not available on this system:"
  200. IDS_STANDBY "Standby"
  201. IDS_LEFTPAREN "("
  202. IDS_S1 "S1"
  203. IDS_S2 "S2"
  204. IDS_S3 "S3"
  205. IDS_RIGHTPAREN ")"
  206. IDS_HIBERNATE "Hibernate"
  207. IDS_SHUTDOWN "Shutdown"
  208. END
  209. STRINGTABLE DISCARDABLE
  210. BEGIN
  211. IDS_ALARM_HEADER1 "\nBattery Alarm Setting Value\n"
  212. IDS_ALARM_HEADER2 "----------------------- -----\n"
  213. IDS_ALARM_NAME "Alarm %s\n"
  214. IDS_LOW "Low"
  215. IDS_CRITICAL "Critical"
  216. IDS_ALARM_ACTIVE "Activate %s\n"
  217. IDS_ALARM_LEVEL "Level %d%%\n"
  218. IDS_ALARM_TEXT "Text Notification %s\n"
  219. IDS_ALARM_SOUND "Sound notification %s\n"
  220. IDS_ALARM_ACTION "Action %s\n"
  221. IDS_NONE "None"
  222. IDS_INVALID "Invalid action!!!!"
  223. IDS_ALARM_FORCE " Force action %s\n"
  224. IDS_ALARM_PROGRAM "Run a program %s\n"
  225. IDS_ALARM_PROGRAM_NAME " Program %s\n"
  226. IDS_ALARM_INVALID_ALARM "Alarm must be ""Low"" or ""Critical"".\n"
  227. IDS_ALARM_INVALID_ACTIVATE "/ACTIVATE must be followed by ""on"" or ""off"".\n"
  228. IDS_ALARM_INVALID_LEVEL "/LEVEL must be followed by a number from 0 to 100\n"
  229. IDS_ALARM_INVALID_TEXT "/TEXT must be followed by ""on"" or ""off"".\n"
  230. IDS_ALARM_INVALID_SOUND "/SOUND must be followed by ""on"" or ""off"".\n"
  231. IDS_ALARM_INVALID_ACTION "/ACTION must be followed by ""none"", ""standby"", ""hibernate"", or ""shutdown"".\n"
  232. IDS_ALARM_INVALID_FORCE "/FORCEACTION must be followed by ""on"" or ""off"".\n"
  233. IDS_ALARM_INVALID_PROGRAM "/PROGRAM must be followed by ""on"" or ""off"".\n"
  234. IDS_ALARM_PROGRAM_FAILED "WARNING: Initialization of task ""%s"" failed.\nThis task must be created manually with flags set to allow the task to run\nwhile the system is running on batteries.\n"
  235. IDS_ALARM_STANDBY_UNSUPPORTED "This system does not support standby.\n"
  236. IDS_ALARM_HIBERNATE_DISABLED "Hibernation is not enabled. Use: ""POWERCFG /HIBERNATE on""\n"
  237. IDS_HIBERNATE_ALARM_DISABLED "WARNING: Battery alarm action changed from HIBERNATE to NONE.\n"
  238. IDS_HIBERNATE_ALARM_DISABLE_FAILED "WARNING: Failed to automatically change battery alarm action from HIBERNATE.\n"
  239. IDS_ALARM_LEVEL_MINIMUM "WARNING: Level set to %d%%. This is the minimum alarm level for this system.\n"
  240. IDS_ALARM_LEVEL_EQUAL "WARNING: the low battery alarm cannot be set to a lower level than the critical battery alarm. Both alarms have been set to %d%%.\n"
  241. IDS_ALARM_FORCE_CRITICAL "WARNING: The critical battery alarm must be set to force stand by or hibernation.\n"
  242. END
  243. /////////////////////////////////////////////////////////////////////////////
  244. //
  245. // Version
  246. //
  247. //
  248. // Version resources
  249. //
  250. #include <ntverp.h>
  251. #define VER_FILETYPE VFT_APP
  252. #define VER_FILESUBTYPE VFT2_UNKNOWN
  253. #define VER_FILEDESCRIPTION_STR "Power Settings Command-Line Tool"
  254. #define VER_INTERNALNAME_STR "PowerCfg.exe"
  255. #define VER_ORIGINALFILENAME_STR "PowerCfg.exe"
  256. #include <common.ver>