On Fri Sep 22 16:59:00 2023 +0000, Esme Povirk wrote:
How likely are real events to come in and interfere with this?
At least in this circumstance, I'd imagine the likelihood is probably low. It will only pass EVENT_OBJECT_FOCUS for this particular event, and in that case it'd have to be fired by the system due to this specific HWND gaining focus. In all my testbot runs I have not seen this happen yet.
I guess we could potentially gate this somehow so that if it doesn't match a combo of hwnd/obj_id it isn't checked, or just remove the check all together. Or, only do: ``` hr = IProxyProviderWinEventSink_AddAutomationEvent(event_sink, This->win_event_handler_data.responder_prov, This->win_event_handler_data.responder_event); ok(hr == S_OK, "Unexpected hr %#lx.\n", hr); ``` if it matches our expected WinEvent.