private void Start(ProcessToBeHookedOnStart aProcess, Action<IRunningProcess> onBeforeProcessStarts) { SpyManager.Start(aProcess, onBeforeProcessStarts); }
private ProcessToBeHookedOnStart CreateProcessToBeHookedFrom(string aPath) { var processToBeHookedOnStart = new ProcessToBeHookedOnStart(aPath, _spyManager, _platformBits); return processToBeHookedOnStart; }
public bool Equals(ProcessToBeHookedOnStart other) { return Path.Equals(other.Path, StringComparison.InvariantCulture); }
public bool Equals(ProcessToBeHookedOnStart other) { return(Path.Equals(other.Path, StringComparison.InvariantCulture)); }
public void Start(ProcessToBeHookedOnStart aProcess, Action<IRunningProcess> onBeforeProcessStarts) { object continueEvent; var newSuspendedProcess = _manager.CreateProcess(aProcess.Path, true, out continueEvent); var processWasCreatedSuccessfully = newSuspendedProcess != null && Convert.ToUInt64(continueEvent.ToString()) != 0; if (!processWasCreatedSuccessfully) return; var processToBeRun = CreateConsoleProcessFrom(newSuspendedProcess); onBeforeProcessStarts(processToBeRun); _manager.ResumeProcess(newSuspendedProcess, continueEvent); }
private void Start(ProcessToBeHookedOnStart aProcess, Action <IRunningProcess> onBeforeProcessStarts) { SpyManager.Start(aProcess, onBeforeProcessStarts); }