C language invocation
The queue manager logically defines the following variables:
MQAXP ExitParms; /* Exit parameter structure */ MQAXC ExitContext; /* Exit context structure */ PMQCHAR pQMgrName; /* Ptr to Queue manager name */ PMQCNO pConnectOpts; /* Ptr to Connection options */ PMQHCONN pHconn; /* Ptr to Connection handle */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code */The queue manager then logically calls the exit as follows:MQ_CONNX_EXIT (&ExitParms, &ExitContext, &pQMgrName, &pConnectOps, &pHconn, &CompCode, &Reason);Your exit must match the following C function prototype:void MQENTRY MQ_CONNX_EXIT ( PMQAXP pExitParms, /* Address of exit parameter structure */ PMQAXC pExitContext, /* Address of exit context structure */ PPMQCHAR ppQMgrName, /* Address of ptr to queue manager name */ PPMQCNO ppConnectOpts, /* Address of ptr to connection options */ PPMQHCONN ppHconn, /* Address of ptr to connection handle */ PMQLONG pCompCode, /* Address of completion code */ PMQLONG pReason); /* Address of reason code qualifying completion code */
Parent topic:
Connect and connect extension - MQ_CONNX_EXIT
fg14840_