NetReceiveFilterGetMulticastAddressCount function (netadapter.h)

The NetReceiveFilterGetMulticastAddressCount function retrieves the number of addresses in a network adapter's multicast address list.

Syntax

SIZE_T NetReceiveFilterGetMulticastAddressCount(
  [_In_] NETRECEIVEFILTER ReceiveFilter
);

Parameters

[_In_] ReceiveFilter

A handle to a NETRECEIVEFILTER object.

Return value

Returns the number of addresses in the multicast address list.

Remarks

Client drivers typically call this function during their EvtNetAdapterSetReceiveFilter callback to get an updated count of multicast addresses.

Requirements

Requirement Value
Minimum supported client Windows 11
Minimum supported server Windows Server 2022
Minimum UMDF version 2.33
Header netadapter.h (include netadaptercx.h)

See also

NetReceiveFilterGetMulticastAddressList

NetReceiveFilterGetPacketFilter

EVT_NET_ADAPTER_SET_RECEIVE_FILTER