5d19a46fc1
Closes #66. - Native: SetProcessInformation/GetProcessInformation with ProcessPowerThrottling (EXECUTION_SPEED), three states: Windows decides, On (EcoQoS), Off (never throttle / HighQoS). - Process tab: context menu entries, a picker with Apply in the details panel, current state in the summary, undo of the last change, included when saving current settings as a rule (only if explicitly set). - Rules: EfficiencyMode + ApplyEfficiencyModeOnStart, applied by the rules engine, editable in the saved-rule editor, validated on import and part of conflict detection. - The summary flags when the global Power Throttling tweak voids it. CPU priority is left alone, unlike Task Manager's efficiency mode. - Localized in all seven languages.
31 lines
619 B
C#
31 lines
619 B
C#
/*
|
|
* ThreadPilot - process memory priority model.
|
|
*/
|
|
namespace ThreadPilot.Models
|
|
{
|
|
public enum ProcessMemoryPriority
|
|
{
|
|
VeryLow = 1,
|
|
Low = 2,
|
|
Medium = 3,
|
|
BelowNormal = 4,
|
|
Normal = 5,
|
|
}
|
|
|
|
public enum ProcessIoPriority
|
|
{
|
|
VeryLow = 0,
|
|
Low = 1,
|
|
Normal = 2,
|
|
High = 3,
|
|
}
|
|
|
|
// Windows 11 "efficiency mode" (EcoQoS). Off forces full speed (HighQoS); SystemManaged lets Windows decide.
|
|
public enum ProcessEfficiencyMode
|
|
{
|
|
SystemManaged = 0,
|
|
On = 1,
|
|
Off = 2,
|
|
}
|
|
}
|