Export (0) Print
Expand All

ReplyMessage function

Replies to a message sent through the SendMessage function without returning control to the function that called SendMessage.

Syntax


BOOL WINAPI ReplyMessage(
  _In_  LRESULT lResult
);

Parameters

lResult [in]

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]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
InSendMessage
SendMessage
Conceptual
Messages and Message Queues

 

 

Community Additions

ADD
Show:
© 2014 Microsoft