CTokenPrivileges::GetNamesAndAttributes
Retrieves the name and attribute flags from the CTokenPrivileges object.
void GetNamesAndAttributes(
CNames * pNames,
CAttributes * pAttributes = NULL
) const throw(...);
Параметры
pNames
Pointer to an array of CString objects. CNames is a typedef defined as CAtlArray <CString> CNames.pAttributes
Pointer to an array of DWORD objects. If this parameter is omitted or NULL, the attributes are not retrieved. CAttributes is a typedef defined as CAtlArray <DWORD> CAttributes.
Заметки
This method will enumerate all of the privileges contained in the CTokenPrivileges object, placing the name and (optionally) the attribute flags into array objects.
This method retrieves the attribute name, rather than the displayable name: for example, if the attribute name is SE_REMOTE_SHUTDOWN_NAME, the system name is "SeRemoteShutdownPrivilege." To obtain the displayable name, use the method CTokenPrivileges::GetDisplayNames.
Требования
Header: atlsecurity.h
См. также
Основные понятия
CTokenPrivileges::GetDisplayNames