// // InsufficientPermissionsError.cs // // Copyright (c) František Boháček. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Remora.Results; namespace NosSmooth.Injector.Errors; /// /// The current user has insufficient permissions to inject into the given process. /// /// The id of the process. /// The name of the process. public record InsufficientPermissionsError(long ProcessId, string ProcessName) : ResultError ( $"Insufficient permissions to open process {ProcessId} ({ProcessName}). Try running the injector as administrator." );