Directory Services |
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.
HRESULT CreateModal( HWND hwndParent, IADs** ppADsObj );
Returns an OLE-defined error code or one of the following values.
If the user cancels the object creation wizard, this method returns S_FALSE. If ppADsObj is not NULL, ppADsObj receives a NULL value. Because of this, the use of the SUCCEEDED macro to determine if ppADsObj is valid should be avoided. Always test the contents of ppADsObj for a non-NULL value before using the interface pointer.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Header: Declared in Dsadmin.h.
IDsAdminCreateObj, IDsAdminCreateObj::Initialize, GetDesktopWindow, IADs, SUCCEEDED