Platform SDK: Active Directory, ADSI, and Directory Services |
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 );
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. |
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.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsadmin.h.