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