# CmtGetThreadPoolAttribute

int CmtGetThreadPoolAttribute (int poolHandle, int attributeID, void *attributeValue);

## Purpose

Obtains the value of the thread pool attribute you specify.

## Parameters

Input
Name | Type | Description
poolHandle | integer | Pass the handle you obtained from CmtNewThreadPool to identify the thread pool. Pass DEFAULT_THREAD_POOL_HANDLE to specify the default thread pool.
attributeID | integer | The ID of a thread pool 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.