CSecurityDesc::GetOwner

从安全说明符检索所有者informaton。

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

参数

  • pSid
    CSid (安全标识符)的指针进行分组的副本。CDacl存储状态。

  • pbDefaulted
    为标志的指针设置为SE_OWNER_DEFAULTED标志的值。SECURITY_DESCRIPTOR_CONTROL 结构的,当方法返回。

返回值

返回true,则方法成功,错误;如果失败。

要求

Header: atlsecurity.h

请参见

参考

CSecurityDesc选件类

GetSecurityDescriptorOwner

CSecurityDesc::GetControl

CSecurityDesc::GetDacl

CSecurityDesc::GetGroup

CSecurityDesc::GetSacl

CSecurityDesc::SetOwner