public bool RemoveProcess(string processName)
{
ServiceProcess process = FindProcess(processName.Trim());
if ((object)process == null)
return false;
process.StateChanged -= Process_StateChanged;
lock (m_processes)
{
m_processes.Remove(process);
}
return true;
}