Is there a way to set a token for another process?

后端 未结 3 560
执念已碎
执念已碎 2021-01-03 09:22

There is SetThreadToken() function but no such function as \"SetProcessToken()\".

Is there a way to set a token for another process? How to write \"SetProcessToken()

3条回答
  •  Happy的楠姐
    2021-01-03 10:01

    A process only has one security token, the primary, which is a copy of the user's security token.

    Threads have a second security token, the impersonation token. Processes do not have these, only threads. You cannot make a process impersonate another user's security token.

提交回复
热议问题