The SmsOpenFilterContainer function opens a filter container and populates the filter container with persistent filters. Currently, SMS queries (persistent machine filters) are the only type of persistent filter. SmsOpenFilterContainer returns the handle to the filter container in the phFContainer parameter.
SMS_STATUS SmsOpenFilterContainer(
HANDLE hConnection, // Handle to database connection.
HANDLE *phFContainer // Receives handle to the filter container.
);
The SmsOpenFilterContainer function returns a status code SMS_STATUS. If successful, the function returns a status of SMS_OK. Otherwise, it returns the following manifest constant:
After your application has finished using a filter container, it should free the memory used by the filter container by calling the SmsCloseFilterContainer function.
SmsDataSourceConnect, SmsCloseFilterContainer