foreach (Process p in processes) { if (p.ProcessName.Equals(processName)) { handle = p.MainWindowHandle; id = (uint)p.Id; break; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)