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 wraps the C API export AddStaticFilterFront using the class instance’s internal driver handle.

See Also

CNdisApi::AddStaticFilterBack, CNdisApi::InsertStaticFilter, STATIC_FILTER