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

kernel32

.
Summary
SetThreadExecutionState is used to stop the machine timing out and entering standby/switching the display device off.
.

static extern EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE esFlags);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_DISPLAY_REQUIRED | EXECUTION_STATE.ES_CONTINUOUS);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_AWAYMODE_REQUIRED);

.

        SetThreadExecutionState(EXECUTION_STATE.ES_SYSTEM_REQUIRED);

.
Documentation
[SetThreadExecutionState] on MSDN

 
Access PInvoke.net directly from VS: