SmsGetTokenCount

The SmsGetTokenCount function retrieves the number of tokens currently set in the specified filter or inventory rules folder.

SMS_STATUS SmsGetTokenCount(
  HANDLE hFilter,  // Handle to filter or inventory rules folder.
  DWORD *pctTokens // Pointer to DWORD that will receive the token 
                   // count.
);
 

Parameters

hFilter
Specifies the handle to the filter or inventory rules folder whose token count you want to retrieve.
pctTokens
Points to a DWORD that receives the count of the number of tokens within the specified filter or inventory rules folder.

Return Values

The SmsGetTokenCount function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns the following manifest constant:

SMS_INVALID_HANDLE
The specified handle is not a valid filter handle or inventory rules folder handle.