// wdm.h
VOID PoSetSystemState(
[in] EXECUTION_STATE Flags
);
View the official Windows Driver Kit DDI referenceNo description available.
Drivers call the PoSetSystemState routine to indicate that the system is active.
Flags [in]Indicates the system activity, as specified by a bitwise OR of one or more of the following values:
The system is not idle, regardless of apparent load.
Use of the display is required.
A user is present.
A driver calls PoSetSystemState to set flags indicating that system activity is occurring. Unlike PoRegisterSystemState, this routine does not allow the driver to set a persistent busy state.
The Flags parameter specifies the type of activity occurring. Drivers can specify any combination of the flags.
Drivers can set the system busy state to request that the system avoid leaving of the working state while driver activity is occurring. Note, however, that under some circumstances (such as a critically low battery) the power manager may override this request and put the system to sleep anyway.