Exit providers can supply an MQ_PUT1_EXIT function to intercept the MQPUT1 call.
|
The MQ_PUT1_EXIT call has the following parameters.
Exit parameter structure.
Exit context structure.
Connection handle.
Object descriptor.
Message descriptor.
Options that control the action of MQPUT1 .
Length of the message in ppBuffer.
Message data.
Completion code.
Reason code qualifying pCompCode.
MQ_PUT1_EXIT (&ExitParms, &ExitContext, &Hconn, &pObjDesc, &pMsgDesc, &pPutMsgOpts, &BufferLength, &pBuffer, &CompCode, &Reason);
The parameters passed to the exit are declared as follows:
PMQAXP pExitParms; /* Exit parameter structure */ PMQAXC pExitContext; /* Exit context structure */ PMQHCONN pHconn; /* Connection handle */ PPMQOD ppObjDesc; /* Object descriptor */ PPMQMD ppMsgDesc; /* Message descriptor */ PPMQPMO ppPutMsgOpts; /* Options that control the action of MQPUT1 */ PMQLONG pBufferLength; /* Length of the message in pBuffer */ PPMQVOID ppBuffer; /* Message data */ PMQLONG pCompCode; /* Completion code */ PMQLONG pReason; /* Reason code qualifying CompCode */