Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

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

.
Documentation
[SetSuspendState] on MSDN

 
Access PInvoke.net directly from VS: