How to find the token for logged in user?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandeepkavade
    New Member
    • Mar 2007
    • 30

    How to find the token for logged in user?

    Hi i want to impersonate the process in SYSTEM, Logged in user and specified user.
    for Specified user i am giving the username and password and impersonation is working fine. The code is taken from http://msdn.microsoft. com/en-us/library/aa379608(VS.85) .aspx The main process starts in SYSTEM account so by only using CreateProcess() api i can handle the case of SYSTEM user. But i am not finding any way to handle the logged in user case. How to get the token for logged in user?
    Any help in this context is really appreciated.
Working...