This topic has not yet been rated - Rate this topic

TOKEN_SOURCE structure

Applies to: desktop apps only

The TOKEN_SOURCE structure identifies the source of an access token.

Syntax

typedef struct _TOKEN_SOURCE {
  CHAR SourceName[TOKEN_SOURCE_LENGTH];
  LUID SourceIdentifier;
} TOKEN_SOURCE, *PTOKEN_SOURCE;

Members

SourceName

Specifies an 8-byte character string used to identify the source of an access token. This is used to distinguish between such sources as Session Manager, LAN Manager, and RPC Server. A string, rather than a constant, is used to identify the source so users and developers can make extensions to the system, such as by adding other networks, that act as the source of access tokens.

SourceIdentifier

Specifies a locally unique identifier (LUID) provided by the source component named by the SourceName member. This value aids the source component in relating context blocks, such as session-control structures, to the token. This value is typically, but not necessarily, an LUID.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Winnt.h (include Windows.h)

See also

GetTokenInformation
LUID
TOKEN_CONTROL
TOKEN_DEFAULT_DACL
TOKEN_GROUPS
TOKEN_INFORMATION_CLASS
TOKEN_OWNER
TOKEN_PRIMARY_GROUP
TOKEN_PRIVILEGES
TOKEN_STATISTICS
TOKEN_TYPE
TOKEN_USER

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Vista source not the same as XP source
Note that where XP returns "User32 " with two trailing spaces, Vista returns "User32 " with just one trailing space.
I wish they'd have left it the same, or commented on the difference.