Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObjExt::WriteData

The WriteData method writes the data retrieved from the wizard page to the temporary Active Directory™ object through the IADs interface pointer supplied by SetObject.

HRESULT WriteData(
  HWND hWnd, 
  ULONG uContext 
);

Parameters

hWnd
[in] The window handle to be used as the parent window for possible error messages.
uContext
[in] The context in which WriteData is called. This parameter can have any of the following values.
Context Value Description of Context
DSA_NEWOBJ_CTX_PRECOMMIT Before the temporary Active Directory object has been written to Active Directory.
DSA_NEWOBJ_CTX_COMMIT During the write process of the temporary object.
DSA_NEWOBJ_CTX_POSTCOMMIT After the write process of the temporary object.
DSA_NEWOBJ_CTX_CLEANUP If there has been a failure during the write process of the temporary object.

Return Values

If the method is successful, the return value is S_OK.

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

Requirements

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

See Also

IDsAdminNewObjExt, IDsAdminNewObjExt::SetObject