[SHUTDOWN]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 14 Dec 2012 23:29:22 +0000 (23:29 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 14 Dec 2012 23:29:22 +0000 (23:29 +0000)
commit45d0b41d19bdd450ba9e0e8715f15a0fcfd7295c
tree38a6d602d7e490173d717102552a62de17b38cbd
parentc56017ac21b81d917e85e93b7439713b1d6d48e5
[SHUTDOWN]
Improve functionnality of the shutdown utility :

* Added extra arguments based upon Windows 7.
* Added options to CommandLineOptions function.
* Simplify the PrintResourceString() function.
* Removed PrintUsage() since PrintResourceString() does a more flexible job at printing strings out.
* Added clear error messages when there is a problem. This makes it a bit easier to determine if there is a problem.
* Convert all the C++ comments to C.
* Since each version of Windows has a different upper limit for the length of the comment, a work around solution is used that first checks the length of the comment based upon the version of Windows that the user is currently using.
* Added support for hibernation mode, but the function SetSuspendState() is only a stub right now.
* In cases where the shutdown/restart operation is done remotely, now the proper permission is granted if the user has the proper permission.
* Added the REASON structure, which contains all the reason code combinations required for giving the proper reason code to the computer.
* Added bare bones basic support for the GUI option (/i). However, until the required features are added to ReactOS, the GUI won't do anything.
* Convert the program to full UNICODE support.

CORE-6613 #resolve #comment Committed in r57916. Thanks :)

svn path=/trunk/; revision=57916
29 files changed:
reactos/base/applications/shutdown/CMakeLists.txt
reactos/base/applications/shutdown/gui.c [new file with mode: 0644]
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/misc.c
reactos/base/applications/shutdown/precomp.h
reactos/base/applications/shutdown/resource.h
reactos/base/applications/shutdown/rsrc.rc
reactos/base/applications/shutdown/shutdown.c
reactos/base/applications/shutdown/shutdown.rc