When you call the MQCreateAsyncMessageConsumer() function or the MQCreateAsyncDurableMessageConsumer() function, you must pass the name of an MQMessageListenerFunc type callback function that is to be called when the consumer receives a message to the specified destination.
The MQMessageListenerFunc type has the following definition:
MQError (* MQMessageListenerFunc)( const MQSessionHandle sessionHandle, const MQConsumerHandle consumerHandle, MQMessageHandle messageHandle void * callbackData); |