SetPacketFilterTable

The SetPacketFilterTable function loads a complete static filter table into the kernel driver, replacing all existing rules and resetting the filter table.

Syntax

BOOL WINAPI SetPacketFilterTable(
    _In_ HANDLE               hOpen,
    _Inout_ PSTATIC_FILTER_TABLE pFilterTable
);

Remarks

This function replaces the active rule set in its entirety. For incremental rule updates without re-allocating the whole table, use the dynamic filtering APIs introduced in Windows Packet Filter 3.6.1: AddStaticFilterFront, AddStaticFilterBack, InsertStaticFilter, and RemoveStaticFilter.

WOW64: The native SDK converts nonzero adapter handles in the supplied filter or table in place before sending the request. Pass a copy if the original structure must be preserved.