Skip to content

Latest commit

 

History

History
112 lines (73 loc) · 3.5 KB

nf-dhcpsapi-dhcphlprisv4policywellformed.md

File metadata and controls

112 lines (73 loc) · 3.5 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:dhcpsapi.DhcpHlprIsV4PolicyWellFormed
DhcpHlprIsV4PolicyWellFormed function (dhcpsapi.h)
Verifies that a DHCP server policy structure is well formed.
DhcpHlprIsV4PolicyWellFormed
DhcpHlprIsV4PolicyWellFormed function [DHCP]
dhcp.dhcphlprisv4policywellformed
dhcpsapi/DhcpHlprIsV4PolicyWellFormed
dhcp\dhcphlprisv4policywellformed.htm
DHCP
820b45f6-aa09-4e15-bf77-caa2723f4ea8
12/05/2018
DhcpHlprIsV4PolicyWellFormed, DhcpHlprIsV4PolicyWellFormed function [DHCP], dhcp.dhcphlprisv4policywellformed, dhcpsapi/DhcpHlprIsV4PolicyWellFormed
dhcpsapi.h
Windows
None supported
Windows Server 2012 [desktop apps only]
Dhcpsapi.lib
Dhcpsapi.dll
Windows
19H1
DhcpHlprIsV4PolicyWellFormed
dhcpsapi/DhcpHlprIsV4PolicyWellFormed
c++
APIRef
kbSyntax
DllExport
Dhcpsapi.dll
DhcpHlprIsV4PolicyWellFormed

DhcpHlprIsV4PolicyWellFormed function

-description

The DhcpHlprIsV4PolicyWellFormed function verifies that a DHCP server policy structure is well formed.

-parameters

-param pPolicy [in]

Pointer to DHCP_POLICY structure that contains the policy to verify

-returns

The API returns TRUE if the specified policy satisfies the conditions in the Remarks below. Otherwise, it returns FALSE.

-remarks

The API performs the following validations on the policy conditions and expression structure.

  1. Every clause in the policy condition must have a valid parent expression.
  2. Every expression in the policy structure must have conditions or other expressions as children.
  3. Only one expression must be the root expression.
  4. All non-root expressions must have valid parent expression.
  5. There must be no cyclic relationship between the expressions. Each expression must have the parent expression index lesser than that of itself.

-see-also

DhcpHlprAddV4PolicyCondition

DhcpHlprAddV4PolicyExpr

DhcpHlprAddV4PolicyRange

DhcpHlprCreateV4Policy

DhcpHlprFreeV4Policy

DhcpHlprIsV4PolicySingleUC

DhcpHlprIsV4PolicyValid

DhcpHlprModifyV4PolicyExpr

DhcpHlprResetV4PolicyExpr