Partager via


CTokenPrivileges::GetDisplayNames

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

void GetDisplayNames(
   CNames* pDisplayNames 
) const throw(...);

Parameters

  • pDisplayNames
    A pointer to an array of CString objects. CNames is defined as a typedef: CTokenPrivileges::CAtlArray<CString>.

Remarks

The parameter pDisplayNames is a pointer to an array of CString objects which will receive the display names corresponding to the privileges contained in the CTokenPrivileges object. This method retrieves display names only for the privileges specified in the Defined Privileges section of WINNT.H.

This method retrieves a displayable name: for example, if the attribute name is SE_REMOTE_SHUTDOWN_NAME, the displayable name is "Force shutdown from a remote system." To obtain the system name, use CTokenPrivileges::GetNamesAndAttributes.

Requirements

Header: atlsecurity.h

See Also

Reference

CTokenPrivileges Class

CTokenPrivileges::GetNamesAndAttributes

CTokenPrivileges::LookupPrivilege

CTokenPrivileges::GetLuidsAndAttributes

Other Resources

CTokenPrivileges Members