Removes the IP filter at the specified index.
#include "ltms.h"
Language | Syntax |
---|---|
C | HRESULT IltmsIPFilters_Remove(pIPFilters, index) |
C++ | HRESULT Remove(index) |
Pointer to an IltmsIPFilters interface.
Zero-based index of the IP filter to remove.
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. |
This function toggles the "allow" permission for the specified IP filter and combines the new entry with the existing collection. This has the effect of deleting the entry. 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 the Set Local Network Filter Example for C++.