Files
Reims-Go/internal/host/scheduling_other.go
T
千川白浪andClaude Opus 5.5 4cf1e8ea37 feat(host): open Windows processor scheduling as administrator
The host page's optimizations list gains a "Windows processor scheduling"
row: it shows whether Windows favours programs or background services
(Win32PrioritySeparation, read without elevation) and a button that opens
System Properties' Performance Options through one UAC prompt, so the
choice saves without a second one. Declining the prompt is not an error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 00:31:18 -07:00

19 lines
397 B
Go

//go:build !windows
package host
import (
"errors"
"fmt"
"runtime"
)
// ErrElevationDeclined: the person said no at the UAC prompt.
var ErrElevationDeclined = errors.New("UAC prompt declined")
func probeProcessorScheduling() string { return "" }
func OpenPerformanceOptionsElevated() error {
return fmt.Errorf("processor scheduling is a Windows setting (current OS: %s)", runtime.GOOS)
}