Share via


IUIAutomationRegistrar::RegisterEvent Method

Registers a third-party Microsoft UI Automation event.

Syntax

HRESULT RegisterEvent(      
    UIAutomationEventInfo *event,
    EVENTID *eventId
);

Parameters

  • event
    [in] The address of a UIAutomationEventInfo structure that contains information about the event to register.
  • eventId
    [out] The address of a variable that receives the event identifier. For a list of event IDs, see Event Identifiers.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The event ID can be used in various event methods, and as a WinEvent value for events in IAccessibleEx implementations.

See Also

IUIAutomationRegistrar