Directory Services

IDsAdminNewObjExt::OnError

The IDsAdminNewObjExt::OnError method is called when an error has occurred in the wizard pages.

HRESULT OnError( 
  HWND hWnd,
  HRESULT hr,
  ULONG uContext
);

Parameters

hWnd
[in] The window handle used as the parent window for possible error messages.
hr
[in] HRESULT of the error that occurred.
uContext
[in] Specifies the context in which OnError is called. This will be one of the following values.
Value Meaning
DSA_NEWOBJ_CTX_PRECOMMIT An error occurred prior to the new Microsoft® Active Directory® directory service object commited to persistent storage.
DSA_NEWOBJ_CTX_COMMIT An error occurred while the new Active Directory object was commited to persistent storage.
DSA_NEWOBJ_CTX_POSTCOMMIT An error occurred after the new Active Directory object was commited to persistent storage.
DSA_NEWOBJ_CTX_CLEANUP An error occurred while the new Active Directory object was commited to persistent storage.

Return Values

A primary creation extension returns S_OK to indicate that the error was handled by the extension or an OLE-defined error code to cause the system to display an error message.

The return value is ignored for a secondary creation extension.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjExt