Поделиться через


CTokenPrivileges::GetDisplayNames

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

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

Параметры

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

Заметки

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.

Требования

Header: atlsecurity.h

См. также

Основные понятия

CTokenPrivileges Class

CTokenPrivileges Members

CTokenPrivileges::GetNamesAndAttributes

CTokenPrivileges::LookupPrivilege

CTokenPrivileges::GetLuidsAndAttributes