Process Code Segment
Process[] proc = Process.GetProcesses(".");
foreach (Process p in proc)
{
p.Id,p.ProcessName
}
Process proc = Process.GetProcessById(PID);
proc.ProcessName
ProcessThreadCollection threads = proc.Threads;
foreach (ProcessThread p in threads)
{
p.Id, p.StartTime, p.PriorityLevel
}
proc = Process.GetProcessById(PID);
proc.ProcessName
foreach (ProcessModule m in proc.Modules)
{
m.ModuleName, m.FileName, m.BaseAddress
}
Process proc;
proc = Process.Start(Name);