示例#1
0
 private void Start(ProcessToBeHookedOnStart aProcess, Action<IRunningProcess> onBeforeProcessStarts)
 {
     SpyManager.Start(aProcess, onBeforeProcessStarts);
 }
示例#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));
 }
示例#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);
        }
示例#6
0
 private void Start(ProcessToBeHookedOnStart aProcess, Action <IRunningProcess> onBeforeProcessStarts)
 {
     SpyManager.Start(aProcess, onBeforeProcessStarts);
 }