OpenThreadToken function advapi32
The OpenThreadToken function opens the access token associated with a thread.
BOOL OpenThreadToken(
HANDLE ThreadHandle,
DWORD DesiredAccess,
BOOL OpenAsSelf,
PHANDLE TokenHandle
);
Implementation
int OpenThreadToken(int ThreadHandle, int DesiredAccess, int OpenAsSelf,
Pointer<IntPtr> TokenHandle) =>
_OpenThreadToken(ThreadHandle, DesiredAccess, OpenAsSelf, TokenHandle);