SE_TOKEN_USER - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ntifs.h

typedef struct _SE_TOKEN_USER {
  union {
    TOKEN_USER         TokenUser;
    SID_AND_ATTRIBUTES User;
  } DUMMYUNIONNAME;
  union {
    SID   Sid;
    UCHAR Buffer[SECURITY_MAX_SID_SIZE];
  } DUMMYUNIONNAME2;
} SE_TOKEN_USER, PSE_TOKEN_USER;
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (ns-ntifs-_se_token_user)

SE_TOKEN_USER structure

Description

The SE_TOKEN_USER structure holds the maximum-sized valid user SID that can be returned by SeQueryInformationToken, GetTokenInformation, or ZwQueryInformationToken with the TokenUser information class. This structure is suitable for stack allocation.

Members

DUMMYUNIONNAME

DUMMYUNIONNAME.TokenUser

Specifies a TOKEN_USER structure representing the user associated with an access token.

DUMMYUNIONNAME.User

Specifies an SID_AND_ATTRIBUTES structure representing the user associated with the access token.

DUMMYUNIONNAME2

DUMMYUNIONNAME2.Sid

Specifies a Security Identifier (SID) structure used to uniquely identify users or groups

DUMMYUNIONNAME2.Buffer

Specifies an array of SECURITY_MAX_SID_SIZE for allocating enough memory for the largest possible SID size.

See also

SID

SID_AND_ATTRIBUTES

TOKEN_USER