Launching an application with the currently logged in user

Apr 17 2009 2:32 AM
I'm using C#.NET, VS2005. I'm launching an application(app1) with the admin user during system start up. From that application I want to run an another application(app2). App2 will always work only when it is run by the currently logged in user.

I used the Process class and set the ProcessStartInfo to set all the user details, but it requires that I have to hard code all the user name, password, which I don't want to do because in the password can be different for different user.

Please help me how can I accomplish the same.

Answers (1)