How to get the token for Logged in User?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
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.