Desktop Functions: Smart Device Functions:
|
SetSuspendState (powrprof)
Suspends the current machine. If hibernate = true, the system hibernates. If hibernate = false, the system enters a standby state. C# Signature:[DllImport ("Powrprof.dll", SetLastError = true)] static extern bool SetSuspendState (bool hibernate, bool forceCritical, bool disableWakeEvent); VB Signature:
Declare Function SetSuspendState Lib "powrprof.dll" (TODO) As TODO User-Defined Types:None. Notes:None. Tips & Tricks:Please add some! Sample Code:using System; using System.Runtime.InteropServices; namespace Sleeper {
class Class1 } Alternative Managed API:Do you know one? Please contribute it! Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|