CTokenGroups::LookupSid
Retrieves the attributes associated with a CSid object.
bool LookupSid(
const CSid & rSid,
DWORD * pdwAttributes = NULL
) const throw( );
Параметры
rSid
The CSid object.pdwAttributes
Pointer to a DWORD which will accept the CSid object's attribute. If omitted or NULL, the attribute will not be retrieved.
Возвращаемое значение
Returns true if the CSid is found, false otherwise.
Заметки
Setting pdwAttributes to NULL provides a way of confirming the existence of the CSid without accessing the attribute. Note that this method should not be used to check access rights as incorrect results may occur under Windows 2000. Applications should instead use the CAccessToken::CheckTokenMembership method.
Требования
Header: atlsecurity.h