FindMyFiles

FindMyFiles.Services

ServiceActionResult Struct

Result of one RunElevated(string, string) call: the classified Outcome plus the raw process ExitCode (-1 when the process never produced one).

public readonly record struct ServiceActionResult : System.IEquatable<FindMyFiles.Services.ServiceActionResult>

Implements System.IEquatable<ServiceActionResult>

Constructors

ServiceActionResult(ServiceActionOutcome, int) Constructor

Result of one RunElevated(string, string) call: the classified Outcome plus the raw process ExitCode (-1 when the process never produced one).

public ServiceActionResult(FindMyFiles.Services.ServiceActionOutcome Outcome, int ExitCode);

Parameters

Outcome ServiceActionOutcome

Success / failure / user-cancelled classification.

ExitCode System.Int32

fmf-service.exe exit code, or -1 if it could not be launched, timed out, or the UAC prompt was declined.

Properties

ServiceActionResult.ExitCode Property

fmf-service.exe exit code, or -1 if it could not be launched, timed out, or the UAC prompt was declined.

public int ExitCode { get; init; }

Property Value

System.Int32

ServiceActionResult.Outcome Property

Success / failure / user-cancelled classification.

public FindMyFiles.Services.ServiceActionOutcome Outcome { get; init; }

Property Value

ServiceActionOutcome