You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicApp(){InitializeComponent();PROCESS_POWER_THROTTLING_STATEpowerThrottling=new(){ControlMask=PInvoke.PROCESS_POWER_THROTTLING_EXECUTION_SPEED,StateMask=PInvoke.PROCESS_POWER_THROTTLING_EXECUTION_SPEED,Version=PInvoke.PROCESS_POWER_THROTTLING_CURRENT_VERSION};// Set the process power throttling to efficiency modeunsafe{_=PInvoke.SetProcessInformation(PInvoke.GetCurrentProcess(),PROCESS_INFORMATION_CLASS.ProcessPowerThrottling,&powerThrottling,(uint)sizeof(PROCESS_POWER_THROTTLING_STATE));}// Set the process priority to idle_=PInvoke.SetPriorityClass(PInvoke.GetCurrentProcess(),PROCESS_CREATION_FLAGS.IDLE_PRIORITY_CLASS);}
This issue proposes a helper to opt into EcoQoS more easily in DevWinUI.
Activity
Add EcoQoSHelper #220
ghost1372 commentedon Oct 10, 2026
Thank you, Done.
d119443