OpenThreadToken function advapi32

int OpenThreadToken(
  1. int ThreadHandle,
  2. int DesiredAccess,
  3. int OpenAsSelf,
  4. Pointer<IntPtr> TokenHandle,
)

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);