DisablePacketFilterCache

Since 3.6.1

Available since: Windows Packet Filter 3.6.1

The DisablePacketFilterCache function deactivates the driver’s flow-level static filter lookup cache and flushes existing cached flow decisions.

Syntax

BOOL WINAPI DisablePacketFilterCache(
    _In_ HANDLE hOpen
);

Parameters

hOpen
[in] Filter device driver handle returned by OpenFilterDriver.

Return Value

Returns TRUE if the cache was successfully disabled; otherwise returns FALSE.

Remarks

This function transmits IOCTL_NDISRD_SET_FILTER_CACHE_STATE with a state flag of FALSE. When disabled, every packet is evaluated linearly against the configured static filter table.

See Also

EnablePacketFilterCache