Directory Services |
The IDsAdminCreateObj interface is implemented by the system and used by an application or component to programatically start a creation wizard for a specified object class.
To obtain an instance of this interface, call CoCreateInstance with the CLSID_DsAdminCreateObj class identifier as shown below.
HRESULT hr = S_OK; IDsAdminCreateObj* pCreateObj = NULL; hr = ::CoCreateInstance(CLSID_DsAdminCreateObj, NULL, CLSCTX_INPROC_SERVER, IID_IDsAdminCreateObj, (void**)&pCreateObj);
The IDsAdminCreateObj interface inherits the methods of the standard COM interface IUnknown.
In addition, IDsAdminCreateObj defines the following methods.
Method | Description |
---|---|
Initialize | Initializes the IDsAdminCreateObj object with data about the container where the object will be created, the class of the object to be created and, possibly, the source object to copy from. |
CreateModal | Displays the creation wizard and returns the newly created object. |
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsadmin.h.
Active Directory Admin Interfaces, CoCreateInstance