PoPowerOffMonitor

NTSTATUS __stdcall PoPowerOffMonitor(){
  NTSTATUS v0; 
  UINT64 SessionId; 
  _WIN32_POWERSTATE_PARAMETERS Parms; 

  memset(&Parms, 0, sizeof(Parms));
  Parms.MinSystemState = PowerSystemWorking;
  LODWORD(SessionId) = PoBlockConsoleSwitch(&Parms);
  PoStartPowerStateTasks(&Parms);
  Parms.PowerStateTask = PowerState_MonitorOff;
  v0 = PopDispatchStateCallout(&Parms, &SessionId);
  PoEndPowerStateTasks(&Parms);
  PoUnblockConsoleSwitch(&Parms, (unsigned int)SessionId);
  return v0;
}

Referenced by:

No references.