IADsAccessControlList::CopyAccessList

Copies all access control entries (ACEs) in the access control list (ACL) to the caller's process space.

HRESULT CopyAccessList(
  IDispatch * ppAccessControlEntry  //Entries to be added
);
 

Parameters

ppAccessControlEntry
[out] Address of a method-allocated array of IDispatch interface pointers to copies of the ACEs that make up the ACL. If this parameter is NULL on return, CopyAccessList could not copy the ACL.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK
The ACE was copied successfully.

Remarks

The caller is responsible for calling Release on the copies ACEs through their IDispatch pointers.

See Also

IADsAccessControlEntry, IADsSecurityDescriptor