From which thread?
- From main thread: useless unless we're pumping messages
- From dialog thread: it's already pumping messages
From the dialog thread of course. Now I think of it, sending a WM_NULL should be enough.
We want to preserve the timeout. Otherwise winetest runs might get stuck.
I don't think it can get stuck with the SendMessage() approach. As you said, the dialog thread is pumping messages.