2.2.1.2.110 DHCP_POLICY

The DHCP_POLICY structure contains information for a policy used to filter client requests.

 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;

PolicyName: This member is a pointer of type LPWSTR that points to a null-terminated Unicode string identifying the name of the policy. The name of the policy is restricted to 64 characters.

IsGlobalPolicy: This member is of type BOOL and indicates whether this is a server level policy.

Subnet: This member is of type DHCP_IP_ADDRESS structure (section 2.2.1.2.1) and identifies the IPv4 subnet to which the policy belongs, if this is a scope level policy. The value of this member will be 0 for a server level policy.

ProcessingOrder: This member is of type DWORD and identifies the relative order in which the DHCPv4 server will process the policy.

Conditions: This member is a pointer of type LPDHCP_POL_COND_ARRAY (section 2.2.1.2.106) that contains the array of conditions for the policy.

Expressions: This member is a pointer of type LPDHCP_POL_EXPR_ARRAY (section 2.2.1.2.108) that contains the array of expressions for the policy.

Ranges: This member is a pointer of type LPDHCP_IP_RANGE_ARRAY (section 2.2.1.2.104) which points to an array of DHCP_IP_RANGE structures (section 2.2.1.2.31) that represent the policy IP ranges.

Description: This member is a pointer of type LPWSTR and contains the null-terminated Unicode string with the description of the policy. This description string is restricted to 255 characters.

Enabled: This member is a flag of type BOOL that indicates whether the policy is in the enabled or disabled state.