Sun GlassFish Message Queue 4.4 Developer's Guide for C Clients

MQCreateBytesMessage

The MQCreatesBytesMessage function creates a bytes message and passes a handle to it back to you.


MQCreateBytesMessage(MQMessageHandle * messageHandle);

Return Value

MQStatus. See the MQStatusIsError() function for more information.

Parameters

messageHandle

Output parameter for the handle to the new, empty message.

After you obtain the handle to a bytes message, you can use this handle to define its content with the MQSetBytesMessageBytesMQSetBytesMessageBytes function, to set its headers with the MQSetMessageHeaders() function, and to set its properties with the MQSetMessageProperties() function.