Share via


CSecurityDesc::GetOwner

Retrieves owner informaton from the security descriptor.

bool GetOwner( 
   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_OWNER_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

GetSecurityDescriptorOwner

CSecurityDesc::GetControl

CSecurityDesc::GetDacl

CSecurityDesc::GetGroup

CSecurityDesc::GetSacl

CSecurityDesc::SetOwner