public static void ExecuteAction(this InjectAction a, int actionId = 0) { Messenger.Default.Send(new InjectActionMessage() { InjectorId = a.InjectorId, Duration = a.Duration, BackNotifyId = actionId }); }
private void Execute(InjectAction action, int notifyId) { Messenger.Send(new InjectMessage() { InjectorId = action.InjectorId }); NotifyExecuted(notifyId, action.Duration); }
public static Process GetLaunchProcess(InjectAction injectAction, bool isX64, int processId) { string file = GetProcessExeFile(isX64); var argument = $"{injectAction} {processId}"; var proc = new Process { StartInfo = new ProcessStartInfo { FileName = file, Arguments = argument, UseShellExecute = false, RedirectStandardOutput = true, CreateNoWindow = true } }; return(proc); }