public bool Process_Handle(string ProcessName) { try { Process[] ProcList = Process.GetProcessesByName(ProcessName); if (ProcList.Length == 0) return false; else { pHandel = ProcList[0].Handle; return true; } } catch (Exception ex) { Console.Beep(); Console.WriteLine("Process_Handle - " + ex.Message); return false; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)