_STATIC_FILTER_WITH_POSITION

Since 3.6.1

Available since: Windows Packet Filter 3.6.1

The _STATIC_FILTER_WITH_POSITION structure encapsulates a STATIC_FILTER along with a target zero-based index in the driver’s active static filter table. It is the driver IOCTL payload constructed internally by InsertStaticFilter. Public C callers pass hOpen, a PSTATIC_FILTER, and a separate position; C++ callers pass a PSTATIC_FILTER and position. Applications using these helpers do not pass this wrapper structure directly.

Declaration

typedef struct _STATIC_FILTER_WITH_POSITION
{
    unsigned long m_Position;
    STATIC_FILTER m_StaticFilter;
} STATIC_FILTER_WITH_POSITION, *PSTATIC_FILTER_WITH_POSITION;

Members

m_Position
Specifies the zero-based index in the static filter list where the filter should be inserted. Existing rules at and beyond this position are shifted towards the tail of the table.

m_StaticFilter
A STATIC_FILTER structure defining the matching criteria and action for the filter.

See Also

InsertStaticFilter, _STATIC_FILTER, Managing Individual Static Filters