| Platform SDK: Quality of Service | 
The TC_GEN_FILTER structure creates a filter that matches a certain set of packet attributes or criteria, which can subsequently be used to associate packets that meet the attribute criteria with a particular flow. The TC_GEN_FILTER structure uses its AddressType member to indicate a specific filter type to apply to the filter.
typedef struct _TC_GEN_FILTER {
  USHORT    AddressType,    // defines specific filter type, 
                            // Defined in ntddndis.h: 
                            //  NDIS_PROTOCOL_ID_TCP_IP
                            //  NDIS_PROTOCOL_ID_IPX, etc.
  ULONG     PatternSize,    // sizeof specific pattern
  PVOID     Pattern,        // specific format, e.g. IP_PATTERN
  PVOID     Mask            // same type as Pattern
} TC_GEN_FILTER, *TC_GEN_FILTER;
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Unsupported.
  Header: Declared in Traffic.h.