IUIAutomationChangesEventHandler::HandleChangesEvent method

Handles one or more Microsoft UI Automation change events.

Syntax

HRESULT HandleChangesEvent(
  IUIAutomationElement *sender,
  UiaChangeInfo        *uiaChanges,
  int                  changesCount
);

Parameters

sender

A pointer to the element that raised the event.

uiaChanges

A collection of pointers to UiaChangeInfo structures.

changesCount

The number of changes that occurred. This is the number of UiaChangeInfo structures pointed to by the uiaChanges parameter.

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 AddChangesEventHandler.

Requirements

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

See Also

IUIAutomationChangesEventHandler