SetThreadExecutionState function kernel32
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.
EXECUTION_STATE SetThreadExecutionState(
EXECUTION_STATE esFlags
);
Implementation
int SetThreadExecutionState(int esFlags) => _SetThreadExecutionState(esFlags);