Thread: C-Sharp (C#) Group: Re: PID of an active connection
C-Sharp (C#) Group: Re: PID of an active
connection
2005-12-20 23:19:49
You can get all of the processes that are currently running
on a
computer using the following snippet
Process[] procs;
procs = Process.GetProcesses();
foreach(Process proc in procs)
{
proc.Refresh();
string pid = proc.Id.ToString();
}