WNV_IP_ADDRESS structure (wnvapi.h)

Defines an IP address object.

Syntax

typedef struct _WNV_IP_ADDRESS {
  union {
    IN_ADDR  v4;
    IN6_ADDR v6;
    UCHAR    Addr[sizeof(IN6_ADDR)];
  } IP;
} WNV_IP_ADDRESS, *PWNV_IP_ADDRESS;

Members

IP

An IP version 4 (IPv4) or IP version 6 (IPv6) address object.

IP.v4

Type: IN_ADDR An IPv4 address.

IP.v6

Type: IN6_ADDR An IPv6 address.

IP.Addr[sizeof(IN6_ADDR)]

Type: UCHAR[sizeof(IN6_ADDR)] An array of bytes that contains the IP address.

Remarks

The ADDRESS_FAMILY value is always specified separately in the structures that contain this IP address object.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012 [desktop apps only]
Header wnvapi.h