On Wed Sep 14 14:28:07 2022 +0000, Esme Povirk wrote:
If possible, it should be checked by using it. In this case, I think SendMessage would fail with an error indicating an invalid handle.
My thinking here was to try to avoid doing any work around allocating/starting the client thread if we know that the HWND passed in is invalid early on. But if that's an unnecessary optimization, I can change it to a check of SendMessage.