InSendMessage function user32
Determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process) by a call to the SendMessage function.
BOOL InSendMessage();
Implementation
int InSendMessage() => _InSendMessage();