Directory Services

ADsPropShowErrorDialog

The ADsPropShowErrorDialog function displays a dialog box that contains the error messages accumulated through calls to the ADsPropSendErrorMessage function or the WM_ADSPROP_NOTIFY_ERROR.

BOOL ADsPropShowErrorDialog(
  HWND hNotifyObject,
  HWND hPage
);

Parameters

hNotifyObject
[in] The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.
hPage
[in] The window handle of the property page.

Return Values

Returns zero if the notification object does not exist or non-zero otherwise.

Remarks

The error messages added by the ADsPropSendErrorMessage function are accumulated until ADsPropShowErrorDialog is called. ADsPropShowErrorDialog combines and displays the accumulated error messages. When the error dialog is dismissed, the accumulated error messages are deleted.

Requirements

Client: Included in Windows XP.
Server: Included in Windows Server 2003.
Header: Declared in Adsprop.h.
Library: Use DsProp.lib.

See Also

ADsPropSendErrorMessage, WM_ADSPROP_NOTIFY_ERROR, ADSPROPERROR, Active Directory Messages