The SmsGetScalarCount function returns the count of scalars in the specified folder. Note that SmsGetScalarCount cannot be used to retrieve the count of scalars from a persistent filter.
SMS_STATUS SmsGetScalarCount(
HANDLE hFolder, // Handle to folder.
DWORD *pctScalars // Pointer to DWORD value that will receive the
// count.
);
The SmsGetScalarCount function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns one of the following manifest constants: