Share via


CTokenGroups::LookupSid

Retrieves the attributes associated with a CSid object.

bool LookupSid( 
   const CSid & rSid, 
   DWORD * pdwAttributes = NULL 
) const throw( );

Parameters

  • 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.

Return Value

Returns true if the CSid is found, false otherwise.

Remarks

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.

Requirements

Header: atlsecurity.h

See Also

Reference

CTokenGroups Class

CTokenGroups::GetSidsAndAttributes

Other Resources

CTokenGroups Members