IDsAdminNewObjExt::OnError method (dsadmin.h)
The IDsAdminNewObjExt::OnError method is called when an error has occurred in the wizard pages.
Syntax
HRESULT OnError(
[in] HWND hWnd,
[in] HRESULT hr,
[in] ULONG uContext
);
Parameters
[in] hWnd
The window handle used as the parent window for possible error messages.
[in] hr
HRESULT of the error that occurred.
[in] uContext
Specifies the context in which OnError is called. This will be one of the following values.
DSA_NEWOBJ_CTX_PRECOMMIT
An error occurred prior to the new object committed to persistent storage.
DSA_NEWOBJ_CTX_COMMIT
An error occurred while the new object was committed to persistent storage.
DSA_NEWOBJ_CTX_POSTCOMMIT
An error occurred after the new object was committed to persistent storage.
DSA_NEWOBJ_CTX_CLEANUP
An error occurred while the new object was committed to persistent storage.
Return value
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
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | dsadmin.h |
DLL | DSAdmin.dll |