Author: hbelusca
Date: Fri Dec 14 23:29:22 2012
New Revision: 57916
URL:
http://svn.reactos.org/svn/reactos?rev=57916&view=rev
Log:
[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 :)
Added:
trunk/reactos/base/applications/shutdown/gui.c (with props)
Modified:
trunk/reactos/base/applications/shutdown/CMakeLists.txt
trunk/reactos/base/applications/shutdown/lang/bg-BG.rc
trunk/reactos/base/applications/shutdown/lang/de-DE.rc
trunk/reactos/base/applications/shutdown/lang/el-GR.rc
trunk/reactos/base/applications/shutdown/lang/en-US.rc
trunk/reactos/base/applications/shutdown/lang/es-ES.rc
trunk/reactos/base/applications/shutdown/lang/fr-FR.rc
trunk/reactos/base/applications/shutdown/lang/it-IT.rc
trunk/reactos/base/applications/shutdown/lang/ja-JP.rc
trunk/reactos/base/applications/shutdown/lang/ko-KR.rc
trunk/reactos/base/applications/shutdown/lang/lt-LT.rc
trunk/reactos/base/applications/shutdown/lang/nl-NL.rc
trunk/reactos/base/applications/shutdown/lang/no-NO.rc
trunk/reactos/base/applications/shutdown/lang/pl-PL.rc
trunk/reactos/base/applications/shutdown/lang/pt-BR.rc
trunk/reactos/base/applications/shutdown/lang/ro-RO.rc
trunk/reactos/base/applications/shutdown/lang/ru-RU.rc
trunk/reactos/base/applications/shutdown/lang/sk-SK.rc
trunk/reactos/base/applications/shutdown/lang/sv-SE.rc
trunk/reactos/base/applications/shutdown/lang/uk-UA.rc
trunk/reactos/base/applications/shutdown/lang/zh-CN.rc
trunk/reactos/base/applications/shutdown/lang/zh-TW.rc
trunk/reactos/base/applications/shutdown/misc.c
trunk/reactos/base/applications/shutdown/precomp.h
trunk/reactos/base/applications/shutdown/resource.h
trunk/reactos/base/applications/shutdown/rsrc.rc
trunk/reactos/base/applications/shutdown/shutdown.c (contents, props changed)
trunk/reactos/base/applications/shutdown/shutdown.rc
[This mail would be too long, it was shortened to contain the URLs only.]
Modified: trunk/reactos/base/applications/shutdown/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Added: trunk/reactos/base/applications/shutdown/gui.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/bg-BG.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/el-GR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/ko-KR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/lt-LT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/no-NO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/pt-BR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/ro-RO.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/sk-SK.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/sv-SE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/zh-CN.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/lang/zh-TW.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/precomp.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/rsrc.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/shutdown.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…
Modified: trunk/reactos/base/applications/shutdown/shutdown.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/shutdown…