DHCP_SUBNET_ELEMENT_DATA structure

The DHCP_SUBNET_ELEMENT_DATA structure defines an element that describes a feature or restriction of a subnet. Together, a set of elements describes the set of IP addresses served for a subnet by DHCP.

Syntax

typedef struct _DHCP_SUBNET_ELEMENT_DATA {
  DHCP_SUBNET_ELEMENT_TYPE   ElementType;
#if ...
  union {
    DHCP_IP_RANGE       *IpRange;
    DHCP_HOST_INFO      *SecondaryHost;
    DHCP_IP_RESERVATION *ReservedIp;
    DHCP_IP_RANGE       *ExcludeIpRange;
    DHCP_IP_CLUSTER     *IpUsedCluster;
  } Element;
#if ...
  _DHCP_SUBNET_ELEMENT_UNION _DHCP_SUBNET_ELEMENT_UNION;
#else
  union {
    DHCP_IP_RANGE       *IpRange;
    DHCP_HOST_INFO      *SecondaryHost;
    DHCP_IP_RESERVATION *ReservedIp;
    DHCP_IP_RANGE       *ExcludeIpRange;
    DHCP_IP_CLUSTER     *IpUsedCluster;
  } Element;
#endif
#else
  _DHCP_SUBNET_ELEMENT_UNION _DHCP_SUBNET_ELEMENT_UNION;
#endif
} DHCP_SUBNET_ELEMENT_DATA, *LPDHCP_SUBNET_ELEMENT_DATA;

Members

ElementType

DHCP_SUBNET_ELEMENT_TYPE enumeration value describing the type of element in the subsequent field.

Element

Element.#388862426.IpRange

Element.#388862426.SecondaryHost

Element.#388862426.ReservedIp

Element.#388862426.ExcludeIpRange

Element.#388862426.IpUsedCluster

_DHCP_SUBNET_ELEMENT_UNION

Element.#388862428.IpRange

Element.#388862428.SecondaryHost

Element.#388862428.ReservedIp

Element.#388862428.ExcludeIpRange

Element.#388862428.IpUsedCluster

Requirements

   
Minimum supported client None supported
Minimum supported server Windows Server 2008, Windows Server 2008 R2 [desktop apps only]
Header dhcpsapi.h

See also

DHCP_SUBNET_ELEMENT_INFO_ARRAY

DHCP_SUBNET_ELEMENT_TYPE