title: System.Diagnostics.Process.Start C# authentication issue
body: <p>System.Diagnostics.Process.Start C# authentication issues:</p>
  
  <p>I am tying to write a coded UI test which can call external function (I know how to call a batch file but here I would like to call the exe using C# code)</p>
  
  <p>Here is my code, I can bring up the log in window sometime. But it does not seem to authenticate.</p>
  
  <pre><code>public void Login()
  {
      Char[] input = "********".ToCharArray();
      SecureString SecurePassword = new SecureString();
  
      for (int idx = 0; idx &lt; input.Length; idx++)
      {
          SecurePassword.AppendChar(input[idx]);
      }
      SecureString secure = SecurePassword;
      string FileName = @"C:\\Program Files (x86)\\Helium\\Edition\\7.0\\Gateway\\UserShell.exe";
      System.Diagnostics.Process.Start(FileName, "pAlan",secure,"");
  }
  </code></pre>
  
  <p>Test method <code>CodedUITest2.CodedUITestMethod1</code> threw exception: </p>
  
  <blockquote>
  <pre><code>System.ComponentModel.Win32Exception: The stub received bad data
  </code></pre>
  </blockquote>