Desktop Functions: Smart Device Functions:
|
Search Results for "SetSuspendState" in [All]powrprof
static extern bool SetSuspendState (bool hibernate, bool forceCritical, bool disableWakeEvent);
Declare Function SetSuspendState Lib "powrprof.dll" (ByVal Hibernate As Boolean, ByVal ForceCritical As Boolean, ByVal DisableWakeEvent As Boolean) As Boolean
static extern bool SetSuspendState(bool hibernate, bool forceCritical, bool disableWakeEvent);
SetSuspendState(false, false, false);
'SetSuspendState will put the PC in to a standby mode
Private Declare Function SetSuspendState Lib "powrprof.dll" (ByVal Hibernate As Boolean, ByVal ForceCritical As Boolean, _
'SetSuspendState Example
'SetSuspendState(False, False, False)
Application.SetSuspendState(PowerState.Hibernate, False, False)
Application.SetSuspendState(PowerState.Suspend, False, False) Public Shared Function SetSuspendState(ByVal state As System.Windows.Forms.PowerState, ByVal force As Boolean, ByVal disableWakeEvent As Boolean) As Boolean |