Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObjExt::OnError

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 
);

Parameters

hWnd
[in] The window handle to be used as the parent window for possible error messages.
hr
[in] HRESULT of the error that occurred.
uContext
[in] The context in which OnError 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