ReplyMessage function (winuser.h)
Replies to a message sent from another thread by the SendMessage function.
Syntax
BOOL ReplyMessage(
[in] LRESULT lResult
);
Parameters
[in] lResult
Type: LRESULT
The result of the message processing. The possible values are based on the message sent.
Return value
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
Requirement | Value |
---|---|
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 |
API set | ext-ms-win-ntuser-message-l1-1-2 (introduced in Windows 10, version 10.0.10240) |
See also
Conceptual
Reference