Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminCreateObj::CreateModal

The CreateModal method displays the object creation wizard and returns a newly created object.

HRESULT CreateModal(
  HWND hwndParent, 
  IADs **ppADsObj 
);

Parameters

hwndParent
[in] Handle to the owner window of the dialog box. If this parameter is NULL, the dialog box has no owner window.
**ppADsObj
[out] Pointer to a variable that receives a pointer to ad IADs interface of the newly created object.

Return Values

If the wizard completes successfully, the return value is S_OK.

If an error occurs, the return value is a COM error code. For more information, see Error Handling.

Remarks

Before calling the CreateModal method, you must call the IDsAdminCreateObj::Initialize method to initialize the interface instance.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsadmin.h.

See Also

Active Directory Admin Interfaces, IDsAdminCreateObj, IDsAdminCreateObj::Initialize