title: Disable attach to process
body: <p>I am looking for a way to check and see if someone attached to a program/process I start.</p>
  
  <p>I want to make it harder to reverse engineer my program by disabling attach to process.</p>
  
  <p>Is this do able? is there some API call that will look to see if something is attached to my process and if so end process.</p>
  
  <p>From my understanding I can or should be able to check this in my code and if i see that this is true i can just kill my self or whats attached to my self.</p>
  
  <pre><code>#if DEBUG
  RTBconsole.Text = "Debug version";
  #endif
  </code></pre>
  
  <p>This only stopped me from debugging my code I want to be able to stop any attachment form taking place on my process.</p>