MQ_BEGIN_EXIT - Begin unit of work

 


Exit providers can supply an  MQ_BEGIN_EXIT  function to intercept the  MQBEGIN  call.

 

Syntax


 MQ_BEGIN_EXIT  (pExitParms, pExitContext, pHconn, ppBeginOptions,
pCompCode, pReason)

 

Parameters

The  MQ_BEGIN_EXIT  call has the following parameters.

 

pExitParms (PMQAXP) - input/output

Exit parameter structure.

 

pExitContext (PMQAXC) - input/output

Exit context structure.

 

pHconn (PMQHCONN) - input/output

Connection handle.

 

ppBeginOptions (PPMQBO) - input/output

Options that control the action of  MQBEGIN .

 

pCompCode (PMQLONG) - input/output

Completion code.

 

pReason (PMQLONG) - input/output

Reason code qualifying pCompCode.

 

C invocation

MQ_BEGIN_EXIT (&ExitParms, &ExitContext, &Hconn,
              &pBeginOptions, &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 */
PPMQBO    ppBeginOptions;  /* Options that control the action of
                              MQBEGIN */
PMQLONG   pCompCode;       /* Completion code */
PMQLONG   pReason;         /* Reason code qualifying CompCode */