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 "SetSystemPowerState" in [All]

coredll

.

While this wakes the device, the screen may remain powered off. Combine with SetSystemPowerState truly wake up everything.

.

    static extern int SetSystemPowerState(string psState, int StateFlags, int Options);

.

    Declare Function SetSystemPowerState Lib "Coredll" ( _

.

    SetSystemPowerState(Nothing, POWER_STATE_ON, POWER_FORCE)

.

    SetSystemPowerState(Nothing, POWER_STATE_RESET, POWER_FORCE)

.

            return SetSystemPowerState(null, POWER_STATE_ON, POWER_FORCE);

.

        return SetSystemPowerState(null, POWER_STATE_RESET, POWER_FORCE);

.
Documentation
[SetSystemPowerState] on MSDN

 
Access PInvoke.net directly from VS: