SetThreadToken function advapi32
The SetThreadToken function assigns an impersonation token to a thread. The function can also cause a thread to stop using an impersonation token.
BOOL SetThreadToken(
PHANDLE Thread,
HANDLE Token
);
Implementation
int SetThreadToken(Pointer<IntPtr> Thread, int Token) =>
_SetThreadToken(Thread, Token);