[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: