Esempio n. 1
0
 public void onProcessInfo(object o, ProcessEventArgs e)
 {
     if (e.RemoteIP != RemoteIP)
         return;
     
     string[] str = new string[9];
     str[0] = e.processInfo.ProcessName;
     str[1] = e.processInfo.PID.ToString();
     str[2] = e.processInfo.WindowsTitle;
     str[3] = e.processInfo.Responding.ToString();
     str[4] = e.processInfo.FileLocation;
     str[5] = e.processInfo.Handle.ToString();
     str[6] = e.processInfo.ProcessorAffinity.ToString();
     str[7] = e.processInfo.Threads.ToString();
     str[8] = e.processInfo.Priority;
     ListViewItem itm = new ListViewItem(str, 0);
     listView4.Items.Add(itm);
 }
Esempio n. 2
0
 public static void OnGetProcesses(ProcessEventArgs e)
 {
     if (ClientProcesses != null)
         ClientProcesses(new object(), e);
 }
Esempio n. 3
0
 public override void Run()
 {
     ProcessEventArgs e1 = new ProcessEventArgs(process, Client.RemoteEndPoint.ToString());
     ProcessEvent.OnGetProcesses(e1);
     process = null; //clean memory
 }