Bewerken

Delen via


SE_TOKEN_USER structure (ntifs.h)

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.

Syntax

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;

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[SECURITY_MAX_SID_SIZE]

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

Requirements

Requirement Value
Header ntifs.h

See also

SID

SID_AND_ATTRIBUTES

TOKEN_USER