title: Cannot call Process.EnterDebugMode() without causing the Exception
body: <p>I try to BSOD myself(force blue screen of death) whenever I shutdown my application. Unfortunately when I call <code>Process.EnterDebugMode();</code> I get an exception: <code>Not all privileges or groups referenced are assigned to the caller</code>. </p>
  
  <p>I write keylogger(that part is done) which suppose to spy on the serviceman who will repair my laptop so I will know if he didn't make any funny business.</p>
  
  <pre><code>[DllImport("ntdll.dll", SetLastError = true)]
  private static extern int NtSetInformationProcess(IntPtr hProcess, int processInformationClass, ref int processInformation, int processInformationLength);
  
  public static void Main() {
      int isCritical = 1;  // we want this to be a Critical Process
      int BreakOnTermination = 0x1D;  // value for BreakOnTermination (flag)
  
  
      Process.EnterDebugMode();  //acquire Debug Privileges
  
      // setting the BreakOnTermination = 1 for the current process
      NtSetInformationProcess(Process.GetCurrentProcess().Handle, BreakOnTermination, ref isCritical, sizeof(int));
  </code></pre>