示例#1
0
        private IEnumerable <IRunningProcess> FilterProcessesToApplyHookingSettingsOn(IEnumerable <IRunningProcess> processes)
        {
            var clasifier = new ProcessClasifier();

            clasifier.Categorize(processes.Cast <IProcess>());

            return(_view.SelectProcessesToApplyHookingRules(
                       clasifier.ToHookOnStart.ToArray(),
                       clasifier.UnHooked.ToArray(),
                       clasifier.HookedInactive.ToArray(),
                       clasifier.HookedActive.ToArray()));
        }
        protected override bool HandleCore(IEnumerable <IRunningProcess> processes)
        {
            var clasifier = new ProcessClasifier();

            clasifier.Categorize(processes.Cast <IProcess>());

            _view.DisplayRunningProcesses(
                clasifier.ToHookOnStart.ToArray(),
                clasifier.UnHooked.ToArray(),
                clasifier.HookedInactive.ToArray(),
                clasifier.HookedActive.ToArray());

            return(true);
        }
示例#3
0
        private void DisplayRunningProcesses()
        {
            var processes = _spyManager.RunningProcesses();

            processes = ProcessFilter.ForInvalidProcesses(_platformBits).Filter(processes);

            var clasifier = new ProcessClasifier();

            clasifier.Categorize(processes.Cast <IProcess>());

            _view.DisplayRunningProcesses(
                clasifier.ToHookOnStart.ToArray(),
                clasifier.UnHooked.ToArray(),
                clasifier.HookedInactive.ToArray(),
                clasifier.HookedActive.ToArray());
        }