Platform SDK: Active Directory, ADSI, and Directory Services |
The OnError method is called with a context value when an error has occurred in the wizard pages.
HRESULT OnError( HWND hWnd, HRESULT hr, 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.