CNdisApi::AddStaticFilterFront

Since 3.6.1

Available since: Windows Packet Filter 3.6.1

The CNdisApi::AddStaticFilterFront method prepends a static filter to the front (index 0) of the driver’s active static filter table at runtime.

Syntax

BOOL CNdisApi::AddStaticFilterFront(
    PSTATIC_FILTER pFilter
) const;

Parameters

pFilter
Pointer to a STATIC_FILTER structure defining the matching rules and filter action.

Return Value

Returns TRUE if the filter was prepended successfully; otherwise returns FALSE.

Remarks

This method sends IOCTL_NDISRD_ADD_PACKET_FILTER_FRONT using the class instance’s internal driver handle. The C export AddStaticFilterFront wraps this method.

See Also

CNdisApi::AddStaticFilterBack, CNdisApi::InsertStaticFilter, STATIC_FILTER

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.