Directory Services

ADsPropSendErrorMessage

The ADsPropSendErrorMessage function adds an error message to a list of error messages displayed by calling the ADsPropShowErrorDialog function.

BOOL ADsPropSendErrorMessage(
  HWND hNotifyObject,
  PADSPROPERROR pError
);

Parameters

hNotifyObject
[in] The handle of the notification object. To obtain this handle, call ADsPropCreateNotifyObj.
pError
[out] Pointer to an ADSPROPERROR structure which contains data about the error message.

Return Values

Returns non-zero if successful or 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

ADsPropShowErrorDialog, ADSPROPERROR, WM_ADSPROP_NOTIFY_ERROR, Active Directory Messages