On Fri Sep 29 17:00:25 2023 +0000, Esme Povirk wrote:
The check being elsewhere doesn't change the behavior, and the behavior is what I'm unsure about. Does an IProxyProviderWinEventSink instance really only allow raising a single eventid?
You can pass another event ID, but whatever you pass to the sink has to match the current HUIAEVENT being evaluated. When a WinEvent is received, i.e `EVENT_OBJECT_FOCUS`, each registered `UIA_AutomationFocusChangedEventId` HUIAEVENT passes an `IProxyProviderWinEventSink` to the `IProxyProviderWinEventHandler` on the node. The event passed to the sink is then evaluated to check if it matches the HUIAEVENT. Passing a different event ID is an immediate 'non-match' condition.