CTokenGroups Class
This class is a wrapper for the TOKEN_GROUPS structure.
Important
This class and its members cannot be used in applications that execute in the Windows Runtime.
class CTokenGroups
Members
Public Constructors
Name |
Description |
---|---|
The constructor. |
|
The destructor. |
Public Methods
Name |
Description |
---|---|
Adds a CSid or existing TOKEN_GROUPS structure to the CTokenGroups object. |
|
Deletes a CSid and its associated attributes from the CTokenGroups object. |
|
Deletes all CSid objects and their associated attributes from the CTokenGroups object. |
|
Returns the number of CSid objects and associated attributes contained in the CTokenGroups object. |
|
Returns the size of the CTokenGroups object. |
|
Retrieves a pointer to the TOKEN_GROUPS structure. |
|
Retrieves the CSid objects and attributes belonging to the CTokenGroups object. |
|
Retrieves the attributes associated with a CSid object. |
Public Operators
Name |
Description |
---|---|
Casts the CTokenGroups object to a pointer to the TOKEN_GROUPS structure. |
|
Assignment operator. |
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 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.
Requirements
Header: atlsecurity.h