IDsAdminCreateObj interface (dsadmin.h)
The IDsAdminCreateObj interface is implemented by the system and used by an application or component to programmatically 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.
#include <initguid.h> #include <dsadmin.h> HRESULT hr = S_OK; IDsAdminCreateObj* pCreateObj = NULL; hr = ::CoCreateInstance(CLSID_DsAdminCreateObj, NULL, CLSCTX_INPROC_SERVER, IID_IDsAdminCreateObj, (void**)&pCreateObj);
The IDsAdminCreateObj interface inherits from the IUnknown interface. IDsAdminCreateObj also has these types of members:
The IDsAdminCreateObj interface has these methods.
The IDsAdminCreateObj::CreateModal method displays the object creation wizard and returns the newly created object. The IDsAdminCreateObj::Initialize method must be called before IDsAdminCreateObj::CreateModal can be called.
The IDsAdminCreateObj::Initialize method initializes an 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.
|Minimum supported client||Windows Vista|
|Minimum supported server||Windows Server 2008|