Platform SDK: Active Directory, ADSI, and Directory Services |
The Initialize method initializes the interface with information about the container where the object will be created, the class of the object to be created, the IDsAdminNewObj interface pointer, the wizard information structure and, possibly, the copy source.
HRESULT Initialize( IADsContainer *pADsContainerObj, IADs pADsCopySource, LPCWSTR lpszClassName, IDsAdminNewObj *pDsAdminNewObj, LPDSA_NEWOBJ_DISPINFO pDispInfo );
Note The copy operation is supported on user objects only.
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. If the error code returned is a failure HRESULT, the COM object will be released.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsadmin.h.
IDsAdminNewObj, IDsAdminNewObjExt, IDsAdminNewObjPrimarySite, IUnknown_QueryInterface