Mega Code Archive

 
Categories / C# Tutorial / Development
 

Get a process on the local computer, using the process id

using System; using System.Diagnostics; using System.ComponentModel;     class MyProcess     {         static void Main()         {             Process localById = Process.GetProcessById(1234);         }         }