Adds an IP Filter to the collection.
#include "ltms.h"
Language | Syntax |
---|---|
C | HRESULT IltmsIPFilters_Add(pIPFilters, ipfirst, iplast, allow) |
C++ | HRESULT Add(ipfirst, iplast, allow) |
Pointer to an IltmsIPFilters interface.
String containing the starting IP address of the IP filter (inclusive).
String containing the ending IP address of the IP filter (inclusive).
Boolean value that indicates whether to allow connections in the specified IP address range.
Value | Meaning |
---|---|
S_OK | The function was successful. |
<> S_OK | An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
When you add an IP filter it is combined with the existing filters in the collection. The resulting collection is always a normalized list covering the complete IP address range. Call IltmsIPFilters::get_Count to obtain the resulting collection's IP filter count.
Win32, x64.
For a C++ example, refer to Set Local Network Filter Example for C++.