UiaRaiseAutomationEvent function

Notifies listeners of an event.

Syntax

HRESULT UiaRaiseAutomationEvent(
  IRawElementProviderSimple *pProvider,
  EVENTID                   id
);

Parameters

pProvider

Type: IRawElementProviderSimple*

The provider element where the event occurred.

id

Type: EVENTID

The identifier of the event to be raised. For a list of event IDs, see Event Identifiers.

Return Value

Type: HRESULT

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

Remarks

This function increments the reference counter of the pProvider interface, and UI Automation decrements the reference counter when the event handers finish processing the event.

Requirements

   
Minimum supported client Windows XP [desktop apps | UWP apps]
Minimum supported server Windows Server 2003 [desktop apps | UWP apps]
Target Platform Windows
Header uiautomationcoreapi.h
Library Uiautomationcore.lib
DLL Uiautomationcore.dll