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);

Inheritance

The IDsAdminCreateObj interface inherits from the IUnknown interface. IDsAdminCreateObj also has these types of members:

Methods

The IDsAdminCreateObj interface has these methods.

 
IDsAdminCreateObj::CreateModal

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.
IDsAdminCreateObj::Initialize

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.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsadmin.h

See also

Admin Interfaces in Active Directory Domain Services

CoCreateInstance

Invoking Creation Wizards from Your Application