Enables an application to inform the system that it is in useΒΆ

set_thread_execution_state()

Enables an application to inform the system that it is in use


SYNTAX

set_thread_execution_state(state)

Enables an application to inform the system that it is in use, thereby preventing the system from entering sleep or turning off the display while the application is running.

The state argument must be one of the defined in ES_ prefixes in sculptor.h

The system automatically detects activities such as local keyboard or mouse input, server activity, and changing window focus. Activities that are not automatically detected include disk or CPU activity and video display.

Note

This function has only efect on Microsoft Windows.

This verson was withdrawn at Sculptor 5.6.1 and reinstated at version 5.9.9, 6.0.9, 6.1.6 and 6.2.0 onwards (see Obsolescent functions)


RELATED TOPICS

SetThreadExecutionState (MSDN)