BOOL __stdcall GetPacketFilterTable ( HANDLE hOpen, PSTATIC_FILTER_TABLE pFilterList);
Return Value:TRUE if call was successful, FALSE otherwise
Parameters:hOpen
Specifies driver object open handle.
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 is a C-style wrapper for CNdisApi::GetPacketFilterTable.
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.