IUIAutomationNotificationEventHandler::HandleNotificationEvent method

Handles a Microsoft UI Automation notification event.

Syntax

HRESULT HandleNotificationEvent(
  IUIAutomationElement                          *sender,
  NotificationKind notificationKind             ,
  NotificationProcessing notificationProcessing ,
  BSTR                                          displayString,
  BSTR                                          activityId
);

Parameters

sender

A pointer to the element that raised the event.

arg2

The type of notification.

arg3

Indicates how to process notifications.

displayString

A string to display in the notification message.

activityId

A unique non-localized string to identify an action or group of actions. This is used to pass additional information to the event handler.

Return Value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

This method is implemented by the application to handle events that it has subscribed to by calling AddNotificationEventHandler.

Requirements

   
Minimum supported client Windows 10, version 1709 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header uiautomationclient.h (include UIAutomation.h)

See Also

IUIAutomationNotificationEventHandler