ProcessStartInfo psi = new ProcessStartInfo("iexplore.exe", "http://google.com"); Process p = Process.Start(psi); int number = p.Id; Console.WriteLine(number);//the process id IntPtr windowHandle = p.Handle; Console.WriteLine(windowHandle.ToInt32());// corresponding handler
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)