Creates a new copy of the specified Active Directory object in this container. Copies can only be made within containers in one Active Directory provider's implementation, not across directory systems.
HRESULT IADsContainer::CopyHere(
BSTR bstrSourceObject, //Name of the object to copy
BSTR bstrNewName, //Optional name for the new object
IADs ** ppNewObject //Interface on the new object
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
The destination container must be in the same directory service as the source container. Copying objects across directory service implementations is not permitted.
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.