Using IPv6 Internet Connection Firewall
[The IPv6 Internet Connection Firewall is available for use in the operating systems specified in the Requirements section. It is unavailable in subsequent versions. Instead, use the Windows Firewall API.]
The following section contains sample code that demonstrates how to use the IPv6 Internet Connection Firewall APIs.