BLOG.CSHARPHELPER.COM: Make the computer suspend or hibernate in C#
Make the computer suspend or hibernate in C#
The Application.SetSuspendState lets an application make the system suspend or hibernate. A suspended system enters a low power mode. A hibernating system saves its memory contents to disk and then enters low power mode.
Because it doesn't need to restore the saves memory, a suspended system can resume more quickly than a hibernating system. However, if the computer loses power while suspended, the programs are not properly restored.
The following code shows how the example program suspends or hibernates the system.
Comments