Launching an application as an impersonated user
<p>I've found some C# code online to impersonating a user and it appears to work fine as when I call 'WindowsIdentity.GetCurrent().Name' I get the impersonated users name.</p>

<p>However I then run an application via code and it's loaded using my details and not the impersonated user.</p>

<p>I'm running the application as the user is impersonated as such</p>

<pre><code> sResult += "After impersonation: " + WindowsIdentity.GetCurrent().Name + "\r\n";
                Process myProcess = new Process();

                myProcess.StartInfo.FileName = ConfigurationSettings.AppSettings["Program"];
                myProcess.StartInfo.UseShellExecute = false;
                myProcess.Start();
                MessageBox.Show(this, sResult, "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
</code></pre>

<p>This is the impersonation code I am using <a href="http://www.codeproject.com/Articles/4051/Windows-Impersonation-using-C" rel="nofollow">http://www.codeproject.com/Articles/4051/Windows-Impersonation-using-C</a></p>

<p>So how do I get this application to launch as the impersonated user?</p>
