GetPacketFilterTableResetStats

BOOL CNdisApi::GetPacketFilterTableResetStats ( PSTATIC_FILTER_TABLE pFilterList ) const;

Return Value:
TRUE if call was successful, FALSE otherwise

Parameters:
pFilterList
Pointer to STATIC_FILTER_TABLE.

Remarks:
You should allocate STATIC_FILTER_TABLE structure large enough to fit the one currently loaded into WinpkFilter driver. You can get the number of entries in the STATIC_FILTER_TABLE.m_TableSize using the GetPacketFilterTableSize API call. Basically, this API does the same as GetPacketFilterTable, but also resets packets and bytes counters.

This member calls the filter driver with IOCTL_NDISRD_GET_PACKET_FILTERS_RESET_STATS control code (see details below).

IOCTL_NDISRD_GET_PACKET_FILTERS_RESET_STATS

Input BufferNone
Input Buffer Size0
Output Buffer_STATIC_FILTER_TABLE
Output Buffer SizeVariable, depends on number of entries in the table

Buffer initialization: Query GetPacketFilterTableSize, allocate a STATIC_FILTER_TABLE large enough for that number of STATIC_FILTER entries, and set pFilterList->m_TableSize to the allocated entry count before calling this function. The SDK uses this field to calculate the output buffer size. Check the query and table-read return values.