IADsSecurityDescriptor::CopySecurityDescriptor method (iads.h)

The IADsSecurityDescriptor::CopySecurityDescriptor method copies an ADSI security descriptor object that holds security data about an object.

Syntax

HRESULT CopySecurityDescriptor(
  [out] IDispatch **ppSecurityDescriptor
);

Parameters

[out] ppSecurityDescriptor

Pointer to a pointer to a security descriptor object.

Return value

This method returns the standard return values, including E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as S_OK. For more information about other return values, see ADSI Error Codes.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll

See also

IADsAccessControlEntry

IADsAccessControlList

IADsSecurityDescriptor