win32security.SetThreadToken
SetThreadToken(Thread, Token)
Assigns an impersonation token to a thread. The function can also cause a thread to stop using an impersonation token.
Parameters
SetThreadToken(Thread, Token)
Assigns an impersonation token to a thread. The function can also cause a thread to stop using an impersonation token.