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.
);
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: