InSendMessageEx

[This is preliminary documentation and subject to change.]

The InSendMessageEx function determines whether the current window procedure is processing a message that was sent from another thread (in the same process or a different process). This function is similar to the InSendMessage function, but provides additional information about how the message was sent.

DWORD InSendMessageEx(
  LPVOID lpReserved      // must be NULL
);
 

Parameters

lpReserved
Reserved; must be NULL.

Return Values

If the message was not sent, the return value is ISMEX_NOSEND. Otherwise, the return value is one or more of the following values.

Value Meaning
ISMEX_CALLBACK The message was sent using the SendMessageCallback function. The thread that sent the message is not blocked.
ISMEX_NOTIFY The message was sent using the SendNotifyMessage function. The thread that sent the message is not blocked.
ISMEX_REPLIED The window procedure has processed the message. The thread that sent the message is no longer blocked.
ISMEX_SEND The message was sent using the SendMessage or SendMessageTimeout function. If ISMEX_REPLIED is not set, the thread that sent the message is blocked.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in winuser.h.
  Import Library: Use user32.lib.

See Also

Messages and Message Queues Overview, Message and Message Queue Functions, SendMessage, SendMessageCallback, SendMessageTimeout, SendNotifyMessage