Share via


CSecurityDesc::GetGroup

Retrieves the primary group information from the security descriptor.

bool GetGroup(
   CSid * pSid,
   bool * pbDefaulted = NULL 
) const throw(...);

Parameters

  • pSid
    Pointer to a CSid (security identifier) that receives a copy of the group stored in the CDacl.

  • pbDefaulted
    Pointer to a flag set to the value of the SE_GROUP_DEFAULTED flag in the SECURITY_DESCRIPTOR_CONTROL structure when the method returns.

Return Value

Returns true if the method succeeds, false if it fails.

Requirements

Header: atlsecurity.h

See Also

Reference

CSecurityDesc Class

GetSecurityDescriptorGroup

CSecurityDesc::GetControl

CSecurityDesc::GetDacl

CSecurityDesc::GetOwner

CSecurityDesc::GetSacl

CSecurityDesc::SetGroup

Other Resources

CSecurityDesc Members