[SHUTDOWN]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 15 Dec 2012 00:41:16 +0000 (00:41 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sat, 15 Dec 2012 00:41:16 +0000 (00:41 +0000)
- Fix a signed / unsigned warning.
- Attempt to fix resource compilation with MSVC.

svn path=/trunk/; revision=57917

22 files changed:
reactos/base/applications/shutdown/lang/bg-BG.rc
reactos/base/applications/shutdown/lang/de-DE.rc
reactos/base/applications/shutdown/lang/el-GR.rc
reactos/base/applications/shutdown/lang/en-US.rc
reactos/base/applications/shutdown/lang/es-ES.rc
reactos/base/applications/shutdown/lang/fr-FR.rc
reactos/base/applications/shutdown/lang/it-IT.rc
reactos/base/applications/shutdown/lang/ja-JP.rc
reactos/base/applications/shutdown/lang/ko-KR.rc
reactos/base/applications/shutdown/lang/lt-LT.rc
reactos/base/applications/shutdown/lang/nl-NL.rc
reactos/base/applications/shutdown/lang/no-NO.rc
reactos/base/applications/shutdown/lang/pl-PL.rc
reactos/base/applications/shutdown/lang/pt-BR.rc
reactos/base/applications/shutdown/lang/ro-RO.rc
reactos/base/applications/shutdown/lang/ru-RU.rc
reactos/base/applications/shutdown/lang/sk-SK.rc
reactos/base/applications/shutdown/lang/sv-SE.rc
reactos/base/applications/shutdown/lang/uk-UA.rc
reactos/base/applications/shutdown/lang/zh-CN.rc
reactos/base/applications/shutdown/lang/zh-TW.rc
reactos/base/applications/shutdown/shutdown.c

index d0c019e..1ad02eb 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 7d42508..fa4c2f5 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index ab6c8b2..14129eb 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index deec84f..ef288ef 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 4709fbb..ae401fc 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 94df9df..fa9ddc4 100644 (file)
@@ -30,39 +30,39 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Utilisation : shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "              [/m \\\\ordinateur][/t xxx][/d [p|u:]xx:yy [/c ""commentaire""]]\n\n"
-                "    Sans argument ou /?    Afficher l'aide.\n"
-                "    /i      Afficher l'interface utilisateur graphique (GUI). Cette option doit\n"
-                "            être la première.\n"
-                "    /l      Fermer la session sur l'ordinateur local uniquement. Ne peut pas\n"
-                "            être utilisée avec les options /m ou /d.\n"
-                "    /s      Arrêter l'ordinateur.\n"
-                "    /r      Redémarrer l'ordinateur.\n"
-//                "    /g      Redémarrer l'ordinateur et redémarrer toutes les applications\n"
-//                "            enregistrées.\n"
-                "    /a      Annuler un arrêt du système. Ne peut être utilisée que pendant\n"
-                "            la période de délai.\n"
-                "    /p      Arrêter l'ordinateur local sans délai d'expiration ou\n"
-                "            avertissement. Peut être utilisée avec les options /d ou /f.\n"
-                "    /h      Mettre l'ordinateur local en veille prolongée. Utilisable avec\n"
-                "            l'option /f.\n"
-                "    /e      Documenter la raison de l'arrêt inattendu d'un ordinateur.\n"
-                "    /m \\\\ordinateur  Spécifier l'ordinateur cible (adresse UNC/IP).\n"
-                "    /t xxx  Définir la période de délai avant l'arrêt au bout de xxx secondes.\n"
-                "            La plage valide est comprise entre 0 et 315360000 (10 ans),\n"
-                "            30 étant la valeur par défaut.\n"
-                "    /c ""commentaire""  Commentaire sur la raison de l'arrêt ou du redémarrage.\n"
-                "            512 caractères maximum autorisés.\n"
-                "    /f      Force la fermeture des applications en cours d'exécution sans\n"
-                "            prévenir les utilisateurs. Si vous ne spécifiez aucun autre\n"
-                "            paramètre, cette option provoquera aussi une déconnexion.\n"
-                "    /d [p|u:]xx:yy  Fournit la raison de l'arrêt ou du redémarrage.\n"
-                "            p indique que l'arrêt ou le redémarrage est planifié.\n"
-                "            u indique que la raison est définie par l'utilisateur.\n"
-                "            Si ni p ni u ne sont spécifiés, l'arrêt ou le redémarrage ne sont\n"
-                "            planifiés.\n"
-                "            xx est le code de raison majeur (entier positif inférieur à 256).\n"
+    IDS_USAGE,  "Utilisation : shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"       \
+                "              [/m \\\\ordinateur][/t xxx][/d [p|u:]xx:yy [/c ""commentaire""]]\n\n"    \
+                "    Sans argument ou /?    Afficher l'aide.\n"                                         \
+                "    /i      Afficher l'interface utilisateur graphique (GUI). Cette option doit\n"     \
+                "            être la première.\n"                                                       \
+                "    /l      Fermer la session sur l'ordinateur local uniquement. Ne peut pas\n"        \
+                "            être utilisée avec les options /m ou /d.\n"                                \
+                "    /s      Arrêter l'ordinateur.\n"                                                   \
+                "    /r      Redémarrer l'ordinateur.\n"                                                \
+//                "    /g      Redémarrer l'ordinateur et redémarrer toutes les applications\n"             /
+//                "            enregistrées.\n"                                                             /
+                "    /a      Annuler un arrêt du système. Ne peut être utilisée que pendant\n"          \
+                "            la période de délai.\n"                                                    \
+                "    /p      Arrêter l'ordinateur local sans délai d'expiration ou\n"                   \
+                "            avertissement. Peut être utilisée avec les options /d ou /f.\n"            \
+                "    /h      Mettre l'ordinateur local en veille prolongée. Utilisable avec\n"          \
+                "            l'option /f.\n"                                                            \
+                "    /e      Documenter la raison de l'arrêt inattendu d'un ordinateur.\n"              \
+                "    /m \\\\ordinateur  Spécifier l'ordinateur cible (adresse UNC/IP).\n"               \
+                "    /t xxx  Définir la période de délai avant l'arrêt au bout de xxx secondes.\n"      \
+                "            La plage valide est comprise entre 0 et 315360000 (10 ans),\n"             \
+                "            30 étant la valeur par défaut.\n"                                          \
+                "    /c ""commentaire""  Commentaire sur la raison de l'arrêt ou du redémarrage.\n"     \
+                "            512 caractères maximum autorisés.\n"                                       \
+                "    /f      Force la fermeture des applications en cours d'exécution sans\n"           \
+                "            prévenir les utilisateurs. Si vous ne spécifiez aucun autre\n"             \
+                "            paramètre, cette option provoquera aussi une déconnexion.\n"               \
+                "    /d [p|u:]xx:yy  Fournit la raison de l'arrêt ou du redémarrage.\n"                 \
+                "            p indique que l'arrêt ou le redémarrage est planifié.\n"                   \
+                "            u indique que la raison est définie par l'utilisateur.\n"                  \
+                "            Si ni p ni u ne sont spécifiés, l'arrêt ou le redémarrage ne sont\n"       \
+                "            planifiés.\n"                                                              \
+                "            xx est le code de raison majeur (entier positif inférieur à 256).\n"       \
                 "            yy est le code de raison mineur (entier positif inférieur à 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERREUR : Impossible d'arrêter et de redémarrer en même temps.\n"
index 992e539..106186d 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index f0b9d48..ef3cc42 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 0ca38b0..7101a11 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index eac4856..59d1e04 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 438e327..e388ed4 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 9b64910..ccd30d3 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 23311fe..a88338a 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index b82c2d9..d8a0530 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 1afbd8b..21579fa 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 29ebd20..c5f25f6 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 9db05b5..36e1243 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 1b9d7a3..eefc4c8 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 4674885..cd04b4e 100644 (file)
@@ -38,35 +38,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 3445526..a1b606c 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 9d93b04..30561a6 100644 (file)
@@ -30,35 +30,35 @@ END
 /* Information and error messages */
 STRINGTABLE DISCARDABLE
 BEGIN
-    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"
-                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"
-                "    No arguments or /?    Display this help.\n"
-                "    /i      Show the graphical user interface (GUI). This option must be the\n"
-                "            first one.\n"
-                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"
-                "    /s      Shutdown the computer.\n"
-                "    /r      Restart the computer.\n"
-//                "    /g      Restart the computer and restart all the registered applications.\n"
-                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"
-                "            period.\n"
-                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"
-                "            used with /d or /f.\n"
-                "    /h      Hibernate the local computer. Usable with /f.\n"
-                "    /e      Document the reason for the unexpected computer shutdown.\n"
-                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"
-                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"
-                "            The valid range starts from 0 to 315360000 (10 years),\n"
-                "            30 being the default value.\n"
-                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"
-                "            512 characters maximum allowed.\n"
-                "    /f      Force running applications to close without warning users. If you\n"
-                "            do not specify any other parameter, this option will also log off.\n"
-                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"
-                "            p indicates that the shutdown or the restart is planned.\n"
-                "            u indicates that the reason is defined by the user.\n"
-                "            If neither p nor u are specified, the shutdown or the restart are\n"
-                "            not planned.\n"
-                "            xx is the major reason code (positive integer smaller than 256).\n"
+    IDS_USAGE,  "Usage: shutdown [/?] [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]\n"          \
+                "       [/m \\\\computer][/t xxx][/d [p|u:]xx:yy [/c ""comment""]]\n\n"             \
+                "    No arguments or /?    Display this help.\n"                                    \
+                "    /i      Show the graphical user interface (GUI). This option must be the\n"    \
+                "            first one.\n"                                                          \
+                "    /l      Log off on the local system only. Cannot be used with /m or /d.\n"     \
+                "    /s      Shutdown the computer.\n"                                              \
+                "    /r      Restart the computer.\n"                                               \
+//                "    /g      Restart the computer and restart all the registered applications.\n"     /
+                "    /a      Cancel a delayed shutdown. Can only be used during the delay\n"        \
+                "            period.\n"                                                             \
+                "    /p      Shutdown the local computer without any timeout or warning. Can be\n"  \
+                "            used with /d or /f.\n"                                                 \
+                "    /h      Hibernate the local computer. Usable with /f.\n"                       \
+                "    /e      Document the reason for the unexpected computer shutdown.\n"           \
+                "    /m \\\\computer  Specify the target computer (UNC/IP address).\n"              \
+                "    /t xxx  Set the timeout period to xxx seconds before shutting down.\n"         \
+                "            The valid range starts from 0 to 315360000 (10 years),\n"              \
+                "            30 being the default value.\n"                                         \
+                "    /c ""comment""  Comment on the reason for shutdown or restart.\n"              \
+                "            512 characters maximum allowed.\n"                                     \
+                "    /f      Force running applications to close without warning users. If you\n"   \
+                "            do not specify any other parameter, this option will also log off.\n"  \
+                "    /d [p|u:]xx:yy  Give the reason code for the shutdown or the restart.\n"       \
+                "            p indicates that the shutdown or the restart is planned.\n"            \
+                "            u indicates that the reason is defined by the user.\n"                 \
+                "            If neither p nor u are specified, the shutdown or the restart are\n"   \
+                "            not planned.\n"                                                        \
+                "            xx is the major reason code (positive integer smaller than 256).\n"    \
                 "            yy is the minor reason code (positive integer smaller than 65536).\n"
 
     IDS_ERROR_SHUTDOWN_REBOOT,          "ERROR: Unable to shutdown and restart at the same time.\n"
index 74a2fea..0c34813 100644 (file)
@@ -29,7 +29,7 @@ VOID PrintResourceString(INT resID, ...)
 static DWORD
 ParseArguments(struct CommandLineOptions* pOpts, int argc, WCHAR *argv[])
 {
-    UINT index;
+    int index;
 
     if (!pOpts)
         return ERROR_INVALID_PARAMETER;
@@ -56,7 +56,7 @@ ParseArguments(struct CommandLineOptions* pOpts, int argc, WCHAR *argv[])
     {
         if (argv[index][0] == L'-' || argv[index][0] == L'/')
         {
-            switch(towlower(argv[index][1]))
+            switch (towlower(argv[index][1]))
             {
                 case L'?': /* Help */
                     PrintResourceString(IDS_USAGE);
@@ -69,7 +69,7 @@ ParseArguments(struct CommandLineOptions* pOpts, int argc, WCHAR *argv[])
                 case L'c': /* Comment on reason for shutdown */
                     if(CheckCommentLength(argv[index+1]))
                     {
-                        if(index+1 <= argc)
+                        if (index+1 <= argc)
                             pOpts->message = argv[index+1];
                         else
                             return ERROR_INVALID_DATA;
@@ -83,7 +83,7 @@ ParseArguments(struct CommandLineOptions* pOpts, int argc, WCHAR *argv[])
                     break;
 
                 case L'd': /* Reason code [p|u:]xx:yy */
-                    if(index+1 <= argc)
+                    if (index+1 <= argc)
                         pOpts->reason = ParseReasonCode(argv[index+1]);
                     else
                         return ERROR_INVALID_DATA;
@@ -130,7 +130,7 @@ ParseArguments(struct CommandLineOptions* pOpts, int argc, WCHAR *argv[])
 
                 case L't': /* Shutdown delay */
                     pOpts->shutdown_delay = _wtoi(argv[index+1]);
-                    if(pOpts->shutdown_delay > 0) 
+                    if (pOpts->shutdown_delay > 0) 
                         pOpts->force = TRUE;
                     break;