FindMyFiles

FindMyFiles.Services

ServiceActionOutcome Enum

Verdict of one elevated lifecycle action (RunElevated(string, string)). Output is unreadable under ShellExecute, so the exit code is the only signal; a declined UAC prompt is distinguished from a genuine failure so the UI can say so.

public enum ServiceActionOutcome

Fields

Ok 0

The elevated action exited 0 — the verb succeeded.

Failed 1

The action ran but exited non-zero (or could not be launched/timed out) — a genuine failure to surface to the user.

Cancelled 2

The user dismissed the UAC prompt (ERROR_CANCELLED 1223) — not a failure, so the UI says "cancelled" rather than "error".