CmtGetTSQAttribute

int CmtGetTSQAttribute (int queueHandle, int attributeID, void *attributeValue);

Purpose

Obtains the value of a thread safe queue attribute.

Parameters

Input
Name Type Description
queueHandle integer The handle you obtained from CmtNewTSQ to identify the thread safe queue.
attributeID integer The ID of a thread safe queue attribute.
Output
Name Type Description
attributeValue void * The current value of the attribute.

Pass the address of a variable of the appropriate type for the attribute that you pass in the attributeID parameter.

In the function panel, if the attribute currently showing in the Attribute ID ring control has named constants as valid values, you can view a list of values by pressing <Enter> on the control.

Return Value

Name Type Description
CmtStatus integer The CmtStatus code that the function call returns. This function returns 0 to indicate success and negative values to indicate failure. Pass the CmtStatus code to CmtGetErrorMessage to get a description of the error code.