MQZ_TERM_NAME - Terminate name service
This function is provided by a name service component, and is started 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_NAME.
Syntax
MQZ_TERM_NAME( Hconfig , Options , QMgrName , ComponentData , CompCode , Reason )Parameters
- Hconfig
- Type: MQHCONFIG - input
Configuration handle. This handle represents the particular component being terminated. It is used by the component when calling the queue manager with the MQZEP function.
- Options
- Type: MQLONG - input
Termination options. It must be one of the following values:
- QMgrName
- Type: MQCHAR48 - input
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 authorization service interface does not require the component to use it in any defined manner.
- ComponentData
- Type: MQBYTE x ComponentDataLength - input/output
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 (including the initialization function) provided by this component are preserved, and presented the next time one of these component functions is called.
Component data is in shared memory accessible to all processes.
The length of this data area is passed by the queue manager in the ComponentDataLength parameter of the MQZ_INIT_NAME call.
When the MQZ_TERM_NAME call has completed, the queue manager discards this data.
- CompCode
- Type: MQLONG - output
Completion code. It must be one of the following values:
- Reason
- Type: MQLONG - output
Reason code qualifying CompCode.
If CompCode is MQCC_OK:If CompCode is MQCC_FAILED:
For more information about these reason codes, see API reason codes.
C invocation
MQZ_TERM_NAME (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 */Parent topic: Installable services interface reference information