Directory Services


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


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

Return Values

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


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.


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