Compartir a través de


CTokenPrivileges Members

Methods

Add

Adds one or more privileges to the CTokenPrivileges object.

CTokenPrivileges

The constructor.

~CTokenPrivileges

The destructor.

Delete

Deletes a privilege from the CTokenPrivileges object.

DeleteAll

Deletes all privileges from the CTokenPrivileges object.

GetCount

Returns the number of privilege entries in the CTokenPrivileges object.

GetDisplayNames

Retrieves display names for the privileges contained in the CTokenPrivileges object.

GetLength

Returns the buffer size in bytes required to hold the TOKEN_PRIVILEGES structure represented by the CTokenPrivileges object.

GetLuidsAndAttributes

Retrieves the locally unique identifiers (LUIDs) and attribute flags from the CTokenPrivileges object.

GetNamesAndAttributes

Retrieves the privilege names and attribute flags from the CTokenPrivileges object.

GetPTOKEN_PRIVILEGES

Returns a pointer to the TOKEN_PRIVILEGES structure.

LookupPrivilege

Retrieves the attribute associated with a given privilege name.

Operators

operator =

Assignment operator.

operator const TOKEN_PRIVILEGES *

Casts a value to a pointer to the TOKEN_PRIVILEGES structure.

See Also

Reference

CTokenPrivileges Class