PDA

View Full Version : start program as logged in user from service


jtencate
January 3rd 05, 02:27 AM
I have a program that uses a service to talk between computers. I need to be
able to have the service start a program in the logged in users session. I
need to do this becuase the program needs resources that are being used
exclusively by the logged in user.

The issue I have is the service runs in the System session and the logged in
user will not always be the same when my program needs to be started. Is
there a way to get my program to run under the logged in user's session
through impersonation without knowing the logged in user's username and
password.

Can I get the logged in user's token from the system session and use it?

Any advice on how to proceed would be great..

Since this seems to be a security issue, I am asking it here.

-John

Google