DHCP_SUBNET_STATE enumeration (dhcpsapi.h)

The DHCP_SUBNET_STATE enumeration defines the set of possible states for a subnet.

Syntax

typedef enum _DHCP_SUBNET_STATE {
  DhcpSubnetEnabled = 0,
  DhcpSubnetDisabled,
  DhcpSubnetEnabledSwitched,
  DhcpSubnetDisabledSwitched,
  DhcpSubnetInvalidState
} DHCP_SUBNET_STATE, *LPDHCP_SUBNET_STATE;

Constants

 
DhcpSubnetEnabled
Value: 0
The subnet is enabled; the server will distribute addresses, extend leases, and release addresses within the subnet range to clients.
DhcpSubnetDisabled
The subnet is disabled; the server will not distribute addresses or extend leases within the subnet range to clients. However, the server will still release addresses within the subnet range.
DhcpSubnetEnabledSwitched
The subnet is enabled; the server will distribute addresses, extend leases, and release addresses within the subnet range to clients. The default gateway is set to the local machine itself.
DhcpSubnetDisabledSwitched
The subnet is disabled; the server will not distribute addresses or extend leases within the subnet range to clients. However, the server will still release addresses within the subnet range. The default gateway is set to the local machine itself.
DhcpSubnetInvalidState
The subnet is in an invalid state.

Requirements

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

See also

DHCP_SUBNET_INFO