---
name: "GetTokenInformation"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetTokenInformation"
---

# GetTokenInformation(3w)

## NAME

**GetTokenInformation** (ADVAPI32.@)

## SYNOPSIS

BOOL GetTokenInformation\
  (\
   HANDLE                  *token*,\
   TOKEN\_INFORMATION\_CLASS *tokeninfoclass*,\
   LPVOID                  *tokeninfo*,\
   DWORD                   *tokeninfolength*,\
   LPDWORD                 *retlen*\
  )

## DESCRIPTION

Get a type of information about an access *token*.

## PARAMS

*token* **\[In\]**  Handle from **[OpenProcessToken(3w)](/OpenProcessToken/3w.md)** or **[OpenThreadToken(3w)](/OpenThreadToken/3w.md)**.

*tokeninfoclass* **\[In\]**  A **TOKEN\_INFORMATION\_CLASS** from **"winnt.h"**.

*tokeninfo* **\[Out\]**  Destination for *token* information.

*tokeninfolength* **\[In\]**  Length of *tokeninfo*.

*retlen* **\[Out\]**  Destination for returned *token* information length.

## RETURNS

**Success:** **TRUE**. *tokeninfo* contains *retlen* bytes of *token* information

**Failure:** **FALSE**.

## NOTES

See **NtQueryInformationToken(3w)**.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/advapi32/security.c"**.

Debug channel **"advapi"**.
