PDA

View Full Version : Logged On User's hToken


jtencate
January 6th 05, 10:19 PM
Is there a good way to access a logged on user's hToken from a service
running in the system account?

I am trying to launch a program to the default window of the logged on
user's account from the service. The issue I have is that the logged on user
will never be the same so I do not have a consistent username and password to
use. I beleive that if I can get the hToken of the currently logged on user I
should be able to launch the program in their space.

Of course trying to do this in C# doesn't make it any easier.

If anyone could point me in a good direction to go I would appreciate it.

-John

Google