GetCurrentThreadToken function advapi32

int GetCurrentThreadToken()

Retrieves a pseudo-handle that you can use as a shorthand way to refer to the impersonation token that was assigned to the current thread.

Implementation

int GetCurrentThreadToken() => -5.toUnsigned(32);