Export (0) Print
Expand All

CTokenGroups Class

This class is a wrapper for the TOKEN_GROUPS structure.

Important note Important

This class and its members cannot be used in applications that execute in the Windows Runtime.

class CTokenGroups

Name

Description

CTokenGroups::CTokenGroups

The constructor.

CTokenGroups::~CTokenGroups

The destructor.

Name

Description

CTokenGroups::Add

Adds a CSid or existing TOKEN_GROUPS structure to the CTokenGroups object.

CTokenGroups::Delete

Deletes a CSid and its associated attributes from the CTokenGroups object.

CTokenGroups::DeleteAll

Deletes all CSid objects and their associated attributes from the CTokenGroups object.

CTokenGroups::GetCount

Returns the number of CSid objects and associated attributes contained in the CTokenGroups object.

CTokenGroups::GetLength

Returns the size of the CTokenGroups object.

CTokenGroups::GetPTOKEN_GROUPS

Retrieves a pointer to the TOKEN_GROUPS structure.

CTokenGroups::GetSidsAndAttributes

Retrieves the CSid objects and attributes belonging to the CTokenGroups object.

CTokenGroups::LookupSid

Retrieves the attributes associated with a CSid object.

Name

Description

CTokenGroups::operator const TOKEN_GROUPS *

Casts the CTokenGroups object to a pointer to the TOKEN_GROUPS structure.

CTokenGroups::operator =

Assignment operator.

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 CTokenGroups class is a wrapper for the TOKEN_GROUPS structure, containing information about the group security identifiers (SIDs) in an access token.

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

Header: atlsecurity.h

Show:
© 2014 Microsoft