C invocation

MQXEP (Hconfig, ExitReason, Function, EntryPoint, Reserved,
      &CompCode, &Reason);

Declare the parameters as follows:

MQHCONFIG  Hconfig;     /* Configuration handle */
MQLONG     ExitReason;  /* Exit reason */
MQLONG     Function;    /* Function identifier */
PMQFUNC    EntryPoint;  /* Exit function entry point */
MQPTR      Reserved;    /* Reserved */
PMQLONG    pCompCode;   /* Completion code */
PMQLONG    pReason;     /* Reason code qualifying CompCode */