0 out of 2 rated this helpful - Rate this topic

ReplyMessage function

Applies to: desktop apps only

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

Minimum supported server

Windows 2000 Server

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
InSendMessage
SendMessage
Conceptual
Messages and Message Queues

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ