c++ get process owner / current user token

Viewed 4679

I'm trying to get the current user token from a normal process (not elevated, not SYSTEM, etc). I've tried this using WTSQueryUserToken, but you need SYSTEM access for that so that won't work. And the only thing I find on the internet is getting the user SID or name but I couldn't find anything about getting the current user token. Is this even possible?

1 Answers
Related