How to get the token handle of current logged on user? RRS feed

  • Question

  • Hi,everybody!

    Now I am trying to find a way to get the token handle of current logged on user(a domain user) on Vista.

    Anybody any ideas?


    Saturday, September 25, 2010 1:30 AM

All replies

  • first , you can use WTSEnumerateSessions to get sessions,

    then use WTSQuerySessionInformation, you can get user name of each session .

    last,you can use WTSQueryUserToken to get user's token with user's session id ..

    • Proposed as answer by David T. Hunt Thursday, October 7, 2010 6:25 PM
    Saturday, September 25, 2010 9:07 AM