title: Starting and stopping a process in C# .NET
body: <p>I am trying towrite a simple program that has two methods, one that starts a process and one that takes down the same process.
  as in:</p>
  
  <pre><code>public Process StartProc(string procname)
  {
      Process proc = new Process();
      proc.StartInfo.FileName = procname;
      proc.Start();
      return proc;
  }
  
  public void StopProc(Process proc)
  {
      proc.Close();
  }
  </code></pre>
  
  <p>Is it possible to do this like that?</p>