The MQGetMessageHeaders function passes back a handle to the message headers.
(const MQMessageHandle messageHandle MQPropertiesHandle * headersHandle) ; |
MQStatus. See the MQStatusIsError() function for more information.
The message handle.
Output parameter for the handle to the message header properties.
The MQGetMessageHeaders function passes back a handle to the message headers. The message header includes the fields described in Table 4–5. Note that most of the fields are set by the send function; the client can optionally set only two of these fields for sending messages.
Table 4–5 Message Header Properties
Key |
Type |
Set By |
|
---|---|---|---|
|
Client (optional) |
||
|
Client (optional) |
||
|
Send function |
||
|
Send function |
||
|
Send function |
||
|
Send function |
||
|
Send function |
||
|
Message Broker |
You are responsible for freeing the headersHandle after you are done with it. Use the MQFreeProperties() function to free the handle.
Use the MQSetBytesMessageBytes() MQGetMessageProperties() function to determine whether any application-defined properties were set for this message and to find out their value.