Esempio n. 1
0
 private void Start(ProcessToBeHookedOnStart aProcess, Action<IRunningProcess> onBeforeProcessStarts)
 {
     SpyManager.Start(aProcess, onBeforeProcessStarts);
 }
Esempio n. 2
0
        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));
 }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 private void Start(ProcessToBeHookedOnStart aProcess, Action <IRunningProcess> onBeforeProcessStarts)
 {
     SpyManager.Start(aProcess, onBeforeProcessStarts);
 }