IUIAutomation6::CreateEventHandlerGroup method

Registers one or more event listeners in a single method call.

Important  Microsoft UI Automation clients should use the handler group methods to register event listeners instead of individual event registration methods defined in the various IUIAutomation namespaces.
 

Syntax

HRESULT CreateEventHandlerGroup(
  IUIAutomationEventHandlerGroup **handlerGroup
);

Parameters

handlerGroup

A collection of UI Automation event listeners.

Return Value

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

Remarks

Before implementing an event handler, you should be familiar with the threading issues described in Understanding Threading Issues.

Requirements

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

See Also

AddEventHandlerGroup

IUIAutomation6

RemoveEventHandlerGroup