..msdn Add comment W32 Constants Translate this page
Enables applications to inform the system that it is in use, thereby preventing the system from entering the sleeping power state or turning off the display while the application is running.|
DECLARE INTEGER SetThreadExecutionState IN kernel32;
[in] Execution requirements for the thread.
|If the function succeeds, the return value is the previous thread execution state.|
If the function fails, the return value is NULL.
|To run properly on a power-managed computer, applications such as fax servers, answering machines, backup agents, and network management applications must use ES_SYSTEM_REQUIRED | ES_CONTINUOUS when they process events. |
Multimedia applications, such as video players and presentation applications, must use ES_DISPLAY_REQUIRED when they display video for long periods of time without user input. Applications such as word processors, spreadsheets, browsers, and games do not need to call SetThreadExecutionState.
|Word Index links for the SetThreadExecutionState :|
|Translate this page:|
Visited in last 7 days: 18
|Created: ||2006-04-17 13:12:02|
|Modified: ||2006-04-17 13:14:23|