|
Nostalgia .NET - Windows Shutdown
Power off your computer, reboot, sleep, hibernate and log off your system
Simple and small static WindowsShutdown class has several useful methods:
| TurnOffDialog |
Shows turn off dialog. |
| Sleep |
Turns computer into sleep mode. |
| Hibernate |
Turns computer into hibernate mode. |
| LogOff |
Logs off current user. |
| PowerOff |
Turns off the computer. |
| Reboot |
Restarts the computer. |
| Shutdown |
Shutdowns the computer. |
All the methods except TurnOffDialog receive the force boolean parameter. When force is true, the action is executed immediately, so user can lost some unsaved documents, please be careful with this flag.
Demo project shows all the methods:

Evaluate Nostalgia .Net with free trial and order right now!
|