예제 #1
0
파일: ChooseForm.cs 프로젝트: SayHalou/ospy
        public ChooseForm ()
        {
            InitializeComponent ();

            processView.ListViewItemSorter = new ProcessViewItemComparer ();
            usbDevView.ListViewItemSorter = new DeviceViewItemComparer ();

            processViewUpdater = new ProcessViewUpdater (processView);
            usbViewUpdater = new UsbViewUpdater (usbDevView);

            WqlEventQuery startQuery = new WqlEventQuery ();
            startQuery.EventClassName = "Win32_ProcessStartTrace";

            WqlEventQuery stopQuery = new WqlEventQuery ();
            stopQuery.EventClassName = "Win32_ProcessStopTrace";

            ManagementEventWatcher w = new ManagementEventWatcher (startQuery);
            w.EventArrived += new EventArrivedEventHandler (ProcessEventArrived);
            w.Start();
            processStartWatcher = w;

            w = new ManagementEventWatcher (stopQuery);
            w.EventArrived += new EventArrivedEventHandler (ProcessEventArrived);
            w.Start ();
            processStopWatcher = w;
        }
예제 #2
0
파일: AttachForm.cs 프로젝트: SayHalou/ospy
        public AttachForm()
        {
            InitializeComponent();

            processView.ListViewItemSorter = new ProcessViewItemComparer();

            processViewUpdater = new ProcessViewUpdater(processView);

            WqlEventQuery startQuery = new WqlEventQuery("__InstanceCreationEvent", new TimeSpan(0, 0, 1), "TargetInstance isa \"Win32_Process\"");
            ManagementEventWatcher w = new ManagementEventWatcher(startQuery);
            w.EventArrived += new EventArrivedEventHandler(ProcessEventArrived);
            w.Start();
            processStartWatcher = w;

            WqlEventQuery stopQuery = new WqlEventQuery("__InstanceDeletionEvent", new TimeSpan(0, 0, 1), "TargetInstance isa \"Win32_Process\"");
            w = new ManagementEventWatcher(stopQuery);
            w.EventArrived += new EventArrivedEventHandler(ProcessEventArrived);
            w.Start();
            processStopWatcher = w;

            x64NoteLbl.Visible = EasyHook.RemoteHooking.IsX64System;
        }
예제 #3
0
        public AttachForm()
        {
            InitializeComponent();

            processView.ListViewItemSorter = new ProcessViewItemComparer();

            processViewUpdater = new ProcessViewUpdater(processView);

            WqlEventQuery          startQuery = new WqlEventQuery("__InstanceCreationEvent", new TimeSpan(0, 0, 1), "TargetInstance isa \"Win32_Process\"");
            ManagementEventWatcher w          = new ManagementEventWatcher(startQuery);

            w.EventArrived += new EventArrivedEventHandler(ProcessEventArrived);
            w.Start();
            processStartWatcher = w;

            WqlEventQuery stopQuery = new WqlEventQuery("__InstanceDeletionEvent", new TimeSpan(0, 0, 1), "TargetInstance isa \"Win32_Process\"");

            w = new ManagementEventWatcher(stopQuery);
            w.EventArrived += new EventArrivedEventHandler(ProcessEventArrived);
            w.Start();
            processStopWatcher = w;

            x64NoteLbl.Visible = EasyHook.RemoteHooking.IsX64System;
        }