TOKEN_TYPE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTSEAPI_H
//
// Authz
//
// begin_rev
#if (PHNT_MODE == PHNT_MODE_KERNEL)

/**
 * The TOKEN_TYPE enumeration contains values that differentiate between a primary token and an impersonation token.
 * \sa https://learn.microsoft.com/en-us/windows/win32/api/winnt/ne-winnt-token_type
 */
typedef enum _TOKEN_TYPE
{
    TokenPrimary = 1,
    TokenImpersonation
} TOKEN_TYPE;

#endif
// end_rev
#endif

View code on GitHub
// ntifs.h

typedef enum _TOKEN_TYPE {
  TokenPrimary,
  TokenImpersonation
} TOKEN_TYPE;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ne-ntifs-_token_type)

TOKEN_TYPE enumeration

Description

The TOKEN_TYPE enumeration type contains values that differentiate between a primary token and an impersonation token.

Constants

TokenPrimary

Indicates a primary token.

TokenImpersonation

Indicates an impersonation token.

See also

SeQueryInformationToken

TOKEN_INFORMATION_CLASS

TOKEN_STATISTICS

ZwQueryInformationToken

ZwSetInformationToken