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.

153 lines
8.7 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_HIBER_UNSUPPORTED "System does not support hibernation\n"
  17. IDS_HIBER_CONFIG_FAIL "Unable to configure hibernation file\n"
  18. IDS_SYSCAP_FAIL "Unable to determine system capabilities\n"
  19. IDS_INVALID_CMDLINE_PARAM "Invalid Parameters -- try ""/?"" for help\n"
  20. IDS_OUT_OF_MEMORY "Out of Memory\n"
  21. IDS_SCHEME_NOT_FOUND "Scheme Not Found\n"
  22. IDS_ACTIVE_SCHEME_INVALID "Active Power Scheme is Invalid\n"
  23. IDS_SCHEME_ALREADY_EXISTS "A scheme with that name already exists\n"
  24. IDS_SCHEME_CREATE_FAIL "Unable to create a new power scheme\n"
  25. IDS_CURRENTLY_ACTIVE_SCHEME "Currently Active Scheme"
  26. END
  27. STRINGTABLE DISCARDABLE
  28. BEGIN
  29. IDS_SCHEME_NAME "Name %s\n"
  30. IDS_SCHEME_DESCRIPTION "Description %s\n" // unused
  31. IDS_MONITOR_TIMEOUT_AC "Turn off monitor (AC) "
  32. IDS_MONITOR_TIMEOUT_DC "Turn off monitor (DC) "
  33. IDS_DISK_TIMEOUT_AC "Turn off hard disks (AC) "
  34. IDS_DISK_TIMEOUT_DC "Turn off hard disks (DC) "
  35. IDS_STANDBY_TIMEOUT_AC "System standby (AC) "
  36. IDS_STANDBY_TIMEOUT_DC "System standby (DC) "
  37. IDS_HIBER_TIMEOUT_AC "System hibernates (AC) "
  38. IDS_HIBER_TIMEOUT_DC "System hibernates (DC) "
  39. END
  40. STRINGTABLE DISCARDABLE
  41. BEGIN
  42. IDS_USAGE_START "\n"
  43. IDS_USAGE_01 "POWERCFG [/LIST | /QUERY [name] | /CREATE name | /DELETE name |\n"
  44. IDS_USAGE_02 " /SETACTIVE name | /CHANGE name settings |\n"
  45. IDS_USAGE_03 " /HIBERNATE [ON|OFF] | /EXPORT name [/FILE filename] |\n"
  46. IDS_USAGE_04 " /IMPORT name [/FILE filename] | /?]\n"
  47. IDS_USAGE_05 "\n"
  48. IDS_USAGE_06 "Description:\n"
  49. IDS_USAGE_07 " This command line tool enables an administrator to control\n"
  50. IDS_USAGE_08 " the power settings on a system.\n"
  51. IDS_USAGE_09 "\n"
  52. IDS_USAGE_10 "Parameter List:\n"
  53. IDS_USAGE_11 " /LIST, /L Lists the names of existing power schemes.\n"
  54. IDS_USAGE_12 " /QUERY, /Q Displays the configuration of the specified power scheme.\n"
  55. IDS_USAGE_13 " If no name is specified, the configuration of the currently\n"
  56. IDS_USAGE_14 " active power scheme is displayed.\n"
  57. IDS_USAGE_15 " /CREATE, /C Creates a power scheme with the specified name. The new\n"
  58. IDS_USAGE_16 " scheme is created with the properties of the currently\n"
  59. IDS_USAGE_17 " active scheme.\n"
  60. IDS_USAGE_18 " /DELETE, /D Deletes the power scheme with the specified name.\n"
  61. IDS_USAGE_19 " /SETACTIVE, /S Makes the power scheme with the specified name active.\n"
  62. IDS_USAGE_20 " /CHANGE, /X Changes settings of the specified power scheme. Additional\n"
  63. IDS_USAGE_21 " switches specify the changes as follows:\n"
  64. IDS_USAGE_22 " /monitor-timeout-ac <minutes>\n"
  65. IDS_USAGE_23 " /monitor-timeout-dc <minutes>\n"
  66. IDS_USAGE_24 " /disk-timeout-ac <minutes>\n"
  67. IDS_USAGE_25 " /disk-timeout-dc <minutes>\n"
  68. IDS_USAGE_26 " /standby-timeout-ac <minutes>\n"
  69. IDS_USAGE_27 " /standby-timeout-dc <minutes>\n"
  70. IDS_USAGE_28 " /hibernate-timeout-ac <minutes>\n"
  71. IDS_USAGE_29 " /hibernate-timeout-dc <minutes>\n"
  72. IDS_USAGE_30 " /processor-throttle-ac <throttle>\n"
  73. IDS_USAGE_31 " /processor-throttle-dc <throttle>\n"
  74. IDS_USAGE_32 " AC settings are used when the system is on AC power.\n"
  75. IDS_USAGE_33 " DC settings are used when the system is on battery power.\n"
  76. IDS_USAGE_34 " Setting a timeout to zero will disable the corresponding\n"
  77. IDS_USAGE_35 " timeout feature. Supported throttle settings are NONE\n"
  78. IDS_USAGE_36 " CONSTANT, DEGRADE, and ADAPTIVE.\n"
  79. IDS_USAGE_37 " /EXPORT, /E Exports the power scheme with the specified name to a\n"
  80. IDS_USAGE_38 " file. If no filename is specified, the default is \n"
  81. IDS_USAGE_39 " SCHEME.POW. This additional parameter is supported:\n"
  82. IDS_USAGE_40 " /FILE <filename>\n"
  83. IDS_USAGE_41 " /IMPORT, /I Imports the power scheme from a file under the specified\n"
  84. IDS_USAGE_42 " name. If no filename is specified, the default is\n"
  85. IDS_USAGE_43 " SCHEME.POW. If a scheme with that name already exists, it\n"
  86. IDS_USAGE_44 " is replaced with the new one. This additional parameter\n"
  87. IDS_USAGE_45 " is supported:\n"
  88. IDS_USAGE_46 " /FILE <filename>\n"
  89. IDS_USAGE_47 " /HIBERNATE, /H Turns the hibernation feature on/off. Hibernation timeout\n"
  90. IDS_USAGE_48 " is not supported on all systems that support hibernation\n"
  91. IDS_USAGE_49 " /HELP, /? Displays information on command-line parameters.\n"
  92. IDS_USAGE_50 "\n"
  93. IDS_USAGE_51 "Examples:\n"
  94. IDS_USAGE_52 " POWERCFG /LIST\n"
  95. IDS_USAGE_53 " POWERCFG /QUERY scheme\n"
  96. IDS_USAGE_54 " POWERCFG /QUERY\n"
  97. IDS_USAGE_55 " POWERCFG /CREATE scheme\n"
  98. IDS_USAGE_56 " POWERCFG /DELETE scheme\n"
  99. IDS_USAGE_57 " POWERCFG /SETACTIVE scheme\n"
  100. IDS_USAGE_58 " POWERCFG /CHANGE scheme /monitor-timeout-dc 15\n"
  101. IDS_USAGE_59 " POWERCFG /CHANGE scheme /monitor-timeout-dc 0\n"
  102. IDS_USAGE_60 " POWERCFG /HIBERNATE on\n"
  103. IDS_USAGE_61 " POWERCFG /EXPORT scheme /file file\n"
  104. IDS_USAGE_END "\n"
  105. END
  106. STRINGTABLE DISCARDABLE
  107. BEGIN
  108. IDS_LIST_HEADER1 "\nExisting Power Schemes\n"
  109. IDS_LIST_HEADER2 "----------------------\n"
  110. IDS_QUERY_HEADER1 "\nField Description Value\n"
  111. IDS_QUERY_HEADER2 "----------------- -----\n"
  112. IDS_QUERY_FOOTER "\nNote that a timeout value of zero represents a disabled timeout feature.\n" // unused
  113. IDS_UNEXPECTED_ERROR "An unexpected error condition has occurred. Unable to perform operation. You may not have permission to perform this operation.\n"
  114. IDS_HIBER_OUT_OF_RANGE "The hibernation timeout must be at least as long as the standby timeout.\n"
  115. IDS_MINUTES "After %lu mins\n"
  116. IDS_DISABLED "Never\n"
  117. IDS_UNSUPPORTED "Not Supported\n"
  118. IDS_STANDBY_WARNING "WARNING: System does not support standby\n"
  119. IDS_HIBER_WARNING "WARNING: System does not support hibernation timeout\n"
  120. IDS_MONITOR_WARNING "WARNING: System does not support monitor power saving\n"
  121. IDS_DISK_WARNING "WARNING: System does not support disk power saving\n"
  122. IDS_HIBER_PRIVILEGE "No permission to enable/disable hibernation file\n"
  123. IDS_DEFAULT_FILENAME "SCHEME.POW"
  124. IDS_THROTTLE_AC "Processor Throttle (AC) "
  125. IDS_THROTTLE_DC "Processor Throttle (DC) "
  126. IDS_THROTTLE_NONE "NONE\n"
  127. IDS_THROTTLE_CONSTANT "CONSTANT\n"
  128. IDS_THROTTLE_DEGRADE "DEGRADE\n"
  129. IDS_THROTTLE_ADAPTIVE "ADAPTIVE\n"
  130. IDS_THROTTLE_UNKNOWN "UNKNOWN\n"
  131. END
  132. /////////////////////////////////////////////////////////////////////////////
  133. //
  134. // Version
  135. //
  136. //
  137. // Version resources
  138. //
  139. #include <ntverp.h>
  140. #define VER_FILETYPE VFT_APP
  141. #define VER_FILESUBTYPE VFT2_UNKNOWN
  142. #define VER_FILEDESCRIPTION_STR "Power Settings Command-Line Tool"
  143. #define VER_INTERNALNAME_STR "PowerCfg.exe"
  144. #define VER_ORIGINALFILENAME_STR "PowerCfg.exe"
  145. #include <common.ver>