DHCP_SUBNET_ELEMENT_DATA structure (dhcpsapi.h)
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.IpRange
DHCP_IP_RANGE structure that contains the set of DHCP-served IP addresses. This member is present if ElementType is set to DhcpIpRanges.
Element.SecondaryHost
DHCP_HOST_INFO structure that contains the IP addresses of secondary DHCP servers available on the subnet. This member is present if ElementType is set to DhcpSecondaryHosts.
Element.ReservedIp
DHCP_IP_RESERVATION structure that contains the set of reserved IP addresses for the subnet. This member is present if ElementType is set to DhcpExcludedIpRanges.
Element.ExcludeIpRange
DHCP_IP_RANGE structure that contains the set of excluded IP addresses. This member is present if ElementType is set to DhcpExcludedIpRanges.
Element.IpUsedCluster
DHCP_IP_CLUSTER structure that contains the set of clusters within the subnet. This member is present if ElementType is set to DhcpIpUsedClusters.
_DHCP_SUBNET_ELEMENT_UNION
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2008, Windows Server 2008 R2 [desktop apps only] |
Header | dhcpsapi.h |