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>
19 lines
397 B
Go
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)
|
|
}
|