Change User Credentials on Own Process ?

G

Guest

I have seen examples in .NET 2.0 of calling another process such as this
http://www.theserverside.net/tt/articles/showarticle.tss?id=NewSecurityFeatures
using
System.Diagnostics.ProcessStartInfo pInfo = new
System.Diagnostics.ProcessStartInfo();
SecureString ss = new SecureString();
pInfo.Password = ss;
pInfo.UserName = @"domain\alice";
.... REALLY simple. BUT ... I have a need to change the context of the one I
am running - because application legacy A( VB6) calls newC#Application, I
want to do the change in credentials n the C# executable.

The code I saw someone else show here is HUGE, has API win 32 API calls as
well -There must be a simple elegant solution for the existing process as
there is for another process..... Any suggestions ? Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top