GetTokenInformation function advapi32
The GetTokenInformation function retrieves a specified type of information about an access token. The calling process must have appropriate access rights to obtain the information.
BOOL GetTokenInformation(
HANDLE TokenHandle,
TOKEN_INFORMATION_CLASS TokenInformationClass,
LPVOID TokenInformation,
DWORD TokenInformationLength,
PDWORD ReturnLength
);
Implementation
int GetTokenInformation(
int TokenHandle,
int TokenInformationClass,
Pointer TokenInformation,
int TokenInformationLength,
Pointer<Uint32> ReturnLength) =>
_GetTokenInformation(TokenHandle, TokenInformationClass, TokenInformation,
TokenInformationLength, ReturnLength);