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.
15 lines
394 B
C#
15 lines
394 B
C#
/*
|
|
* ThreadPilot - process memory priority service contract.
|
|
*/
|
|
namespace ThreadPilot.Services
|
|
{
|
|
using ThreadPilot.Models;
|
|
|
|
public interface IProcessMemoryPriorityService
|
|
{
|
|
Task<ProcessMemoryPriority?> GetMemoryPriorityAsync(ProcessModel process);
|
|
|
|
Task<ProcessOperationResult> SetMemoryPriorityAsync(ProcessModel process, ProcessMemoryPriority priority);
|
|
}
|
|
}
|