public SetPowerReq ( PowerThreadRequirements threadReq ) : void | ||
threadReq | PowerThreadRequirements | Flag stating suspend mode, or release. |
return | void |
public void SetPowerReq(PowerThreadRequirements threadReq)
{
if (Bootstrapper.GetInstance<IBrowserConfiguration>().Config.DisablePowerManagement)
{
return;
}
// Set application power requirments
NativeMethods.SetThreadExecutionState(threadReq);
}