Determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process).
DWORD InSendMessageEx( LPVOID lpReserved );
Reserved; must be NULL.
Type: Type: DWORD
If the message was not sent, the return value is ISMEX_NOSEND (0x00000000). Otherwise, the return value is one or more of the following values.
||The message was sent using the SendMessageCallback function. The thread that sent the message is not blocked.|
||The message was sent using the SendNotifyMessage function. The thread that sent the message is not blocked.|
||The window procedure has processed the message. The thread that sent the message is no longer blocked.|
||The message was sent using the SendMessage or SendMessageTimeout function. If ISMEX_REPLIED is not set, the thread that sent the message is blocked.|
To determine if the sender is blocked, use the following test:
fBlocked = ( InSendMessageEx(NULL) & (ISMEX_REPLIED|ISMEX_SEND) ) == ISMEX_SEND;
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||winuser.h (include Windows.h)|