GetPacketFilterTable

BOOL CNdisApi::GetPacketFilterTable ( 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 loaded into WinpkFilter driver. You can get the number of entries in the STATIC_FILTER_TABLE.m_TableSize using the GetPacketFilterTableSize API call.
This member calls the driver with IOCTL_NDISRD_GET_PACKET_FILTERS control code (see details below).

IOCTL_NDISRD_GET_PACKET_FILTERS

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.