NET_FW_IP_VERSION enumeration (icftypes.h)

[The Windows Firewall API is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. For Windows Vista and later, use of the Windows Firewall with Advanced Security API is recommended.]

The NET_FW_IP_VERSION enumerated type specifies the IP version for a port.

Syntax

typedef enum NET_FW_IP_VERSION_ {
  NET_FW_IP_VERSION_V4 = 0,
  NET_FW_IP_VERSION_V6,
  NET_FW_IP_VERSION_ANY,
  NET_FW_IP_VERSION_MAX
} NET_FW_IP_VERSION;

Constants

 
NET_FW_IP_VERSION_V4
Value: 0
The port supports IPv4.
NET_FW_IP_VERSION_V6
The port supports IPv6.
NET_FW_IP_VERSION_ANY
The port supports either version of IP.
NET_FW_IP_VERSION_MAX
This value is used for boundary checking only and is not valid for application programming.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2 [desktop apps only]
Minimum supported server None supported
Header icftypes.h

See also

Windows Firewall Enumerated Types

Windows Firewall Reference