On Wed Sep 14 14:46:56 2022 +0000, Connor McAdams wrote:
Hm... I think I can see a scenario where this is an issue. Maybe we should send WM_GETOBJECT from the thread calling UiaNodeFromHandle, and then pass the LRESULT if it's valid to the client thread to be unmarshaled. That'd also make the check for the HWND being valid with SendMessage less resource intensive
You could also use something like SendMessageCallback, although maybe that approach would end up unnecessarily complicated.