The SendMessage function calls the window procedure for the specified window and does not return until the window procedure has processed the message.
... The thread of a process can send messages only to message queues of threads in ...