Rafał Harabień rafalh1992@o2.pl writes:
Tests show that TME_QUERY returns valid data if TME_LEAVE or TME_HOVER tracking is active for window in current thread and returns empty data after starting tracking for window from other thread ("track_query(0, NULL, 0)" in test code). It cannot work this way with global variable (as used already in HEAD).
In fact your test succeeds even with a global variable, because you are using SendNotifyMessageW but don't wait for the message to be processed; so it's not very convincing. You could add waits, but then I'd like to see a test showing that the API doesn't work if the other thread is not currently processing messages.