DHCP_POLICY structure (dhcpsapi.h)

The DHCP_POLICY structure defines a DHCP server policy.

Syntax

typedef struct _DHCP_POLICY {
  LPWSTR                PolicyName;
  BOOL                  IsGlobalPolicy;
  DHCP_IP_ADDRESS       Subnet;
  DWORD                 ProcessingOrder;
  LPDHCP_POL_COND_ARRAY Conditions;
  LPDHCP_POL_EXPR_ARRAY Expressions;
  LPDHCP_IP_RANGE_ARRAY Ranges;
  LPWSTR                Description;
  BOOL                  Enabled;
} DHCP_POLICY, *PDHCP_POLICY, *LPDHCP_POLICY;

Members

PolicyName

Pointer to a null-terminated Unicode string that represents the DHCP server policy name.

IsGlobalPolicy

TRUE if the DHCP server policy is global. Otherwise, it is FALSE.

Subnet

DHCP_IP_ADDRESS structure that specifies the IPv4 subnet ID for a scope level policy.

ProcessingOrder

Integer that specifies the processing order of the DHCP server policy. 1 indicates the highest priority and MAX_DWORD indicates the lowest.

Conditions

Pointer to a DHCP_POL_EXPR_ARRAY that specifies the DHCP server policy conditions.

Expressions

Pointer to a DHCP_POL_EXPR_ARRAY that specifies the DHCP server policy expressions.

Ranges

Pointer to a DHCP_IP_RANGE_ARRAY that specifies the DHCP server IPv4 range associated with the policy.

Description

A pointer to a null-terminated Unicode string that contains the description of the DHCP server policy.

Enabled

TRUE if the policy is enabled. Otherwise, it is FALSE.

Requirements

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

See also

DHCP_POLICY_ARRAY

DHCP_POLICY_FIELDS_TO_UPDATE