The SmsGetFilterByID function retrieves the handle to the persistent filter of the specified filter type and with the specified identifier.
SMS_STATUS SmsGetFilterByID(
HANDLE hFContainer, // Handle to filter container.
DWORD frType, // Filter type.
const char *pszID, // Pointer to identifier string.
HANDLE *phFilter // Pointer to handle that receives the
// filter's handle.
);
The SmsGetFilterByID 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:
SmsGetFilterByID opens the specified filter in the filter container. This filter remains open until it is closed using SmsCloseFilter. The memory allocated for the filter is not deallocated until the usage count for the filter is zero, that is, when all handles to the filter are closed and the filter container itself is closed using SmsCloseFilterContainer.
Using the SmsGetNextFilter function, your application can access the filters in the filter container sequentially. After a filter container is opened, the order of the filters within that particular filter container is fixed. The sequence is determined by the order in which the persistent filters were retrieved.
SmsCloseFilter, SmsCloseFilterContainer, SmsGetNextFilter