The MQSetTextMessageText function defines the body for a text message.
MQSetTextMessageText (const MQMessageHandle messageHandle, ConstMQString messageText); |
MQStatus. See the MQStatusIsError() function for more information.
A handle to a message whose text body you want to set.
An MQString specifying the message text. The library makes a copy of the message text.
After you obtain the handle to a text message, you can use this handle to define its body with the MQSetTextMessageText() function. You can set its application-defined properties with the MQSetMessageProperties() function, and you can set certain message headers with the MQSetMessageHeaders() function.