title: C# after starting a process, the process exits immediately
body: <p>I'm trying to run a process from my app (C#, only for Win7), but on many PCs the process starts and closes immediately (as seen in task manager) and on other PCs it starts fine. This is the code I use:</p>
  
  <pre><code>ProcessStartInfo startInfo = new ProcessStartInfo(@"c:\windows\system32\slui.exe");
  startInfo.UseShellExecute = false;
  startInfo.Verb = "runas";
  Process p = new Process();
  p.StartInfo = startInfo;
  p.Start();
  p.WaitForExit();
  </code></pre>
  
  <p>Am I missing something?</p>