5f9f7b5409
Add process memory priority foundation Introduce backend support for process memory priority using Windows GetProcessInformation and SetProcessInformation while keeping the feature testable and safe. - Add ProcessMemoryPriority model with documented Windows memory priority levels - Add fakeable native API wrapper for process memory priority - Add ProcessMemoryPriorityService with safe error handling - Add ProcessOperationResult for process operation outcomes - Extend persistent process rules with memory priority support - Apply memory priority through PersistentRulesEngine when configured - Preserve anti-cheat/protected-process safety messaging - Add tests for native get/set, invalid process, access denied, unsupported API, enum mapping, persistent rules and JSON roundtrip No UI redesign, registry/IFEO persistence, Windows Service, preset generator, migration, version or tag changes.
20 lines
500 B
C#
20 lines
500 B
C#
/*
|
|
* ThreadPilot - process memory priority model.
|
|
*/
|
|
namespace ThreadPilot.Models
|
|
{
|
|
/// <summary>
|
|
/// Documented Windows process memory priority levels.
|
|
/// CPU priority influences CPU scheduling; memory priority influences how aggressively
|
|
/// Windows may reclaim or page a process's memory under pressure.
|
|
/// </summary>
|
|
public enum ProcessMemoryPriority
|
|
{
|
|
VeryLow = 1,
|
|
Low = 2,
|
|
Medium = 3,
|
|
BelowNormal = 4,
|
|
Normal = 5,
|
|
}
|
|
}
|