This function is provided by a user identifier service component, and is invoked by the queue manager when it no longer requires the services of this component. The function must perform any cleanup required by the component.
The function identifier for this function (for MQZEP ) is MQZID_TERM_USERID.
|
The MQZ_TERM_USERID call has the following parameters.
Configuration handle.
This handle represents the particular component being terminated.
Termination options.
This always has the following value:
Queue manager name.
The name of the queue manager calling the component. This name is padded with blanks to the full length of the parameter; the name is not terminated by a null character.
The queue-manager name is passed to the component for information; the user ID service interface does not require the component to make use of it in any defined manner.
Component data.
This data is kept by the queue manager on behalf of this particular component; any changes made to it by any of the functions provided by this component are preserved, and presented the next time one of this component's functions is called.
The length of this data area is passed by the queue manager in the ComponentDataLength parameter on the MQZ_INIT_USERID call.
When the MQZ_TERM_USERID call has completed, the queue manager discards this data.
Completion code.
Reason code qualifying CompCode.
If CompCode is MQCC_FAILED:
For more information on these reason codes, see the WebSphere MQ Application Programming Reference.
MQZ_TERM_USERID (Hconfig, Options, QMgrName, ComponentData, &CompCode, &Reason);
The parameters passed to the service are declared as follows:
MQHCONFIG Hconfig; /* Configuration handle */ MQLONG Options; /* Termination options */ MQCHAR48 QMgrName; /* Queue manager name */ MQBYTE ComponentData[n]; /* Component data */ MQLONG CompCode; /* Completion code */ MQLONG Reason; /* Reason code qualifying CompCode */