struttura DHCP_SUBNET_ELEMENT_DATA_V5 (dhcpsapi.h)

La struttura DHCP_SUBNET_ELEMENT_DATA_V5 definisce un elemento che descrive una funzionalità o una restrizione di una subnet. Insieme, un set di elementi descrive il set di indirizzi IP serviti per una subnet da DHCP o BOOTP. DHCP_SUBNET_ELEMENT_DATA_V5 consente in modo specifico la definizione di indirizzi gestiti da BOOTP.

Sintassi

typedef struct _DHCP_SUBNET_ELEMENT_DATA_V5 {
  DHCP_SUBNET_ELEMENT_TYPE      ElementType;
#if ...
  union {
    DHCP_BOOTP_IP_RANGE    *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#if ...
  _DHCP_SUBNET_ELEMENT_UNION_V5 _DHCP_SUBNET_ELEMENT_UNION_V5;
#else
  union {
    DHCP_BOOTP_IP_RANGE    *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#endif
#else
  _DHCP_SUBNET_ELEMENT_UNION_V5 _DHCP_SUBNET_ELEMENT_UNION_V5;
#endif
} DHCP_SUBNET_ELEMENT_DATA_V5, *LPDHCP_SUBNET_ELEMENT_DATA_V5;

Members

ElementType

DHCP_SUBNET_ELEMENT_TYPE valore di enumerazione che descrive il tipo di elemento nel campo successivo.

Element

Element.IpRange

DHCP_BOOTP_IP_RANGE struttura che contiene il set di indirizzi IP gestiti da BOOTP. Questo membro è presente se ElementType è impostato su DhcpIpRangesBootpOnly.

Element.SecondaryHost

DHCP_HOST_INFO struttura che contiene gli indirizzi IP dei server DHCP secondari disponibili nella subnet. Questo membro è presente se ElementType è impostato su DhcpSecondaryHosts.

Element.ReservedIp

DHCP_IP_RESERVATION_V4 struttura che contiene il set di indirizzi IP riservati per la subnet. Questo membro è presente se ElementType è impostato su DhcpReservedIps.

Element.ExcludeIpRange

DHCP_IP_RANGE struttura che contiene un intervallo di indirizzi IP. Questo membro è presente se ElementType è impostato su DhcpIpRanges o DhcpExcludedIpRanges.

Element.IpUsedCluster

_DHCP_SUBNET_ELEMENT_UNION_V5

Requisiti

   
Client minimo supportato Nessuno supportato
Server minimo supportato Windows 2000 Server [solo app desktop]
Intestazione dhcpsapi.h