On Fri Oct 6 18:13:47 2023 +0000, Esme Povirk wrote:
What about an event instead? So basically, in `uia_com_win_event_clientside_provider_callback` you would set an event. Then in this loop:
- WaitForSingleObject on the event with a timeout of `TIME_SINCE_LAST_CALLBACK_TIMEOUT`.
- Return TRUE if the full timeout elapsed.
- Return FALSE if WaitForSingleObject timed out.
- Else, continue.
I suppose this would require locking to ensure that other threads don't try to set a stale event handle.