Requests a shutdown of the operating system. The return value should be 0 if the request was successfully executed, 1 if ...

Requests a shutdown of the operating system. The return value should be 0 if the request was successfully executed, 1 if the request is not supported and some other value if an error occurred. It is up to the implementation or subclass of operating system to establish dependencies between the Shutdown and Reboot methods, and for example, to provide more sophisticated capabilities such as scheduled shutdown/reboot, etc.