PoSetSystemState

VOID __stdcall PoSetSystemState(_EXECUTION_STATE Flags){
  unsigned __int8 CurrentIrql; 

  CurrentIrql = KeGetCurrentIrql();
  if( CurrentIrql < 2u )
    PopAcquirePolicyLock();
  PopSetSystemState((unsigned int)Flags, MonitorRequestReasonPoSetSystemState);
  if( CurrentIrql < 2u )
    PopReleasePolicyLock();
}

Referenced by:

PoRegisterSystemState