title: C# - Access denied when trying to get process's handle
body: <p>I'm trying to get the handle of a process, but I get an error saying "Access Denied". Here's my code:</p>
  
  <pre><code>namespace Program
  {
      public partial class Form1 : Form
      {
  
          public Form1()
          {
              InitializeComponent();
          }
  
          private void button1_Click(object sender, EventArgs e)
          {
              IntPtr sign = Process.GetProcessesByName("thatProgram")[0].Handle;
          }
      }
  }
  </code></pre>
  
  <p>It seems this works for all but this particuliar program.
  Can you help me out?</p>