ReplyMessage function

Replies to a message sent from another thread by the SendMessage function.

Syntax

BOOL ReplyMessage(
  LRESULT lResult
);

Parameters

lResult

Type: LRESULT

The result of the message processing. The possible values are based on the message sent.

Return Value

Type: Type: BOOL

If the calling thread was processing a message sent from another thread or process, the return value is nonzero.

If the calling thread was not processing a message sent from another thread or process, the return value is zero.

Remarks

By calling this function, the window procedure that receives the message allows the thread that called SendMessage to continue to run as though the thread receiving the message had returned control. The thread that calls the ReplyMessage function also continues to run.

If the message was not sent through SendMessage or if the message was sent by the same thread, ReplyMessage has no effect.

Examples

For an example, see Sending a Message.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header winuser.h (include Windows.h)
Library User32.lib
DLL User32.dll

See Also

Conceptual

InSendMessage

Messages and Message Queues

Reference

SendMessage