ReplyMessage

  BOOL ReplyMessage(lResult)    
  LRESULT lResult; /* message-dependent reply */

The ReplyMessage function is used to reply to a message sent through the SendMessage function without returning control to the function that called SendMessage.

Parameters

lResult

Specifies the result of the message processing. The possible values depend on the message sent.

Return Value

The return value is TRUE if the calling thread was processing a message sent from another thread or process. Otherwise, the return value is FALSE.

Comments

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 that received the message had returned control. The thread that calls ReplyMessage also continues to run.

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

See Also

InSendMessage, SendMessage