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

# SetTokenInformation(3w)

## NAME

**SetTokenInformation** (ADVAPI32.@)

## SYNOPSIS

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

## DESCRIPTION

Set information for 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* **\[In\]**  Token information to set.

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

## RETURNS

**Success:** **TRUE**. The information for the *token* is set to *tokeninfo*.

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

## IMPLEMENTATION

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

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

Debug channel **"advapi"**.
