Share via


IUIAutomationProxyFactoryEntry::GetWinEventsForAutomationEvent Method

Retrieves the list of WinEvents that are mapped to a specific Microsoft UI Automation event. If an element represented by this proxy raises one the listed WinEvents, the proxy handles it.

Syntax

HRESULT GetWinEventsForAutomationEvent(      
    EVENTID eventId,
    PROPERTYID propertyId,
    SAFEARRAY *winEvents[UINT]
);

Parameters

  • eventId
    [in] The event identifier. For a list of event identifiers, see Event Identifiers.
  • propertyId
    [in] The property identifier. For a list of property IDs, see Property Identifiers.
  • winEvents
    [out, retval] The address of a variable that receives a pointer to a SAFEARRAY containing the WinEvents that map to this event.

Return Value

Returns S_OK if successful, or an error value otherwise.

See Also

IUIAutomationProxyFactoryEntry, IUIAutomationProxyFactoryEntry::SetWinEventsForAutomationEvent, Working with Safe Arrays