Logged On User's hToken

From: jtencate (jtencate_at_discussions.microsoft.com)
Date: 01/06/05


Date: Thu, 6 Jan 2005 14:19:08 -0800

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



Relevant Pages

  • Re: Programs that require full read/write
    ... If you launch the same program ... under the Task Scheduler then access is determined by the account ... resources for which the System account has access. ...
    (microsoft.public.windows.server.general)
  • Re: How serious is the May window?
    ... The launch windows for the rest of the year are ... they don't launch in May or July, there's not much August window ... second one isn't used by the shuttle for range safety reasons; ... The two constraints above apply to any rendezvous flight, ...
    (sci.space.shuttle)
  • RE: SetForegroundWindow doesnt activate hidden main form / "Defau
    ... The problem had not been caused by some COM pointers. ... When looking for the application window, ... > Karl Traunmüller, CEO ... >> 4) Now, If I launch the application a second time, it doesn't get activated. ...
    (microsoft.public.pocketpc.developer)
  • Re: Top Level Form With Menu called from Modal form
    ... control) and Lists. ... list they can launch a List editor window which can launch the ... if the dropdown does not contain the statement that the user ...
    (microsoft.public.fox.vfp.forms)
  • Re: Word 2007 wont Launch
    ... If Safe mode doesn't allow it to launch, ... If Safe mode does allow Word to run, the next thing to try is to delete ... In Window XP, try this: ... Still looking at the left side of the Registry Editor window, ...
    (microsoft.public.word.docmanagement)