SmsGetScalarCount

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

Parameters

hFolder
Specifies the handle to the folder whose scalars you want to count.
pctScalars
Receives the count of scalars.

Return Values

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:

SMS_INVALID_HANDLE
The specified parent handle is not a valid folder handle.
SMS_FOLDER_ALREADY_DELETED
An action was attempted on a folder that has already been deleted.