DhcpHlprIsV4PolicyWellFormed function

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

Syntax


BOOL DHCP_API_FUNCTION DhcpHlprIsV4PolicyWellFormed(
  _In_ LPDHCP_POLICY pPolicy
);

Parameters

pPolicy [in]

Pointer to DHCP_POLICY structure that contains the policy to verify

Return value

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.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Dhcpsapi.h

Library

Dhcpsapi.lib

DLL

Dhcpsapi.dll

See also

DhcpHlprAddV4PolicyCondition
DhcpHlprAddV4PolicyExpr
DhcpHlprAddV4PolicyRange
DhcpHlprCreateV4Policy
DhcpHlprFreeV4Policy
DhcpHlprIsV4PolicySingleUC
DhcpHlprIsV4PolicyValid
DhcpHlprResetV4PolicyExpr
DhcpHlprModifyV4PolicyExpr

 

 

Show: