다음을 통해 공유


CTokenPrivileges Class

This class is a wrapper for the TOKEN_PRIVILEGES structure.

class CTokenPrivileges

Remarks

An access token is an object that describes the security context of a process or thread and is allocated to each user logged onto a Windows NT or Windows 2000 system.

The access token is used to describe the various security privileges granted to each user. A privilege consists of a 64-bit number called a locally unique identifier (LUID) and a descriptor string.

The CTokenPrivileges class is a wrapper for the TOKEN_PRIVILEGES structure and contains 0 or more privileges. Privileges can be added, deleted, or queried using the supplied class methods.

For an introduction to the access control model in Windows, see Access Control in the Windows SDK.

Requirements

Header: atlsecurity.h

See Also

Concepts

ATLSecurity Sample: Demonstrates ATL Security Classes

CTokenPrivileges Members

TOKEN_PRIVILEGES

LUID

LUID_AND_ATTRIBUTES

ATL Class Overview

Security Global Functions