Platform SDK: Active Directory, ADSI, and Directory Services |
The Initialize method initializes the IDsAdminCreateObj interface with information about the container where the object will be created, the class of the object to be created and, possibly, the copy source.
HRESULT Initialize( IADsContainer *pADsContainerObj, IADs pADsCopySource, LPCWSTR lpszClassName );
Note The copy operation is only supported on user objects. Therefore, lpszClassName must contain "user", if the copy operation is required.
If the method is successful, the return value is S_OK.
If an error occurs, the return value is a COM error code. For more information, see Error Handling.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsadmin.h.
Active Directory Admin Interfaces, IDsAdminCreateObj, IDsAdminCreateObj::CreateModal