The ReplyMessage function is used to reply to a message sent through the SendMessage function without returning control to the function that called SendMessage.
BOOL ReplyMessage(
LRESULT lResult // message-specific reply
);
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.
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.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Messages and Message Queues Overview, Message and Message Queue Functions, InSendMessage, SendMessage