<div class="content" name="DHCP_POLICY" uuid="77e79969-cedf-4aa9-9059-6223ba815f30"><p>The <b>DHCP_POLICY</b> structure contains information for a <a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_52323544-69e0-4172-8921-2711cbda988e" data-linktype="relative-path">policy</a> used to filter
client requests.</p><dl>
<dd>
<div><pre> 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;
</pre></div>
</dd></dl><p><b>PolicyName:</b>  This member is a
pointer of type <a href="../ms-dtyp/50e9ef83-d6fd-4e22-a34a-2c6b4e3c24f3" data-linktype="relative-path">LPWSTR</a>
that points to a null-terminated <a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_b069acb4-e364-453e-ac83-42d469bb339e" data-linktype="relative-path">Unicode string</a> identifying
the name of the policy. The name of the policy is restricted to 64 characters.</p><p><b>IsGlobalPolicy:</b>  This member is of
type <a href="../ms-dtyp/9d81be47-232e-42cf-8f0d-7a3b29bf2eb2" data-linktype="relative-path">BOOL</a>
and indicates whether this is a <a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_e4c4b49e-bca4-4854-9e27-67ef0035f06e" data-linktype="relative-path">server level policy</a>.</p><p><b>Subnet:</b>  This member is of type <b>DHCP_IP_ADDRESS</b>
structure (section <a href="5122557b-b85d-4982-8ffb-98d8d934e353" data-linktype="relative-path">2.2.1.2.1</a>)
and identifies the IPv4 subnet to which the policy belongs, if this is a <a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_3b199f35-b0f3-4897-83a6-e7fec0ee7fea" data-linktype="relative-path">scope level policy</a>. The
value of this member will be 0 for a server level policy.</p><p><b>ProcessingOrder:</b>  This member is of
type <a href="../ms-dtyp/262627d8-3418-4627-9218-4ffe110850b2" data-linktype="relative-path">DWORD</a>
and identifies the relative order in which the DHCPv4 server will process the
policy.</p><p><b>Conditions:</b>  This member is a
pointer of type LPDHCP_POL_COND_ARRAY (section <a href="88b34e1e-2d73-47e9-828e-bfea4970c43d" data-linktype="relative-path">2.2.1.2.106</a>) that contains
the array of conditions for the policy.</p><p><b>Expressions:</b>  This member is a
pointer of type LPDHCP_POL_EXPR_ARRAY (section <a href="e24fe009-07df-4476-a36b-9701c6162a19" data-linktype="relative-path">2.2.1.2.108</a>) that contains
the array of expressions for the policy.</p><p><b>Ranges:</b>  This member is a pointer of
type LPDHCP_IP_RANGE_ARRAY (section <a href="02b17eb1-9c1d-4237-afc2-fc0c600ab3e0" data-linktype="relative-path">2.2.1.2.104</a>) which points
to an array of <b>DHCP_IP_RANGE</b> structures (section <a href="29a03b34-249e-4bd8-a118-e708dadbf22b" data-linktype="relative-path">2.2.1.2.31</a>) that represent
the policy <a href="a9d6a415-4de6-4058-befe-ca2e42764485#gt_b63eb4e5-64bf-40a5-bc59-12b83ad184cb" data-linktype="relative-path">IP ranges</a>.</p><p><b>Description:</b>  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.</p><p><b>Enabled:</b>  This member is a flag of
type BOOL that indicates whether the policy is in the enabled or disabled
state.</p></div>