DhcpHlprIsV4PolicyWellFormed function (dhcpsapi.h)
The DhcpHlprIsV4PolicyWellFormed function verifies that a DHCP server policy structure is well formed.
Syntax
BOOL DHCP_API_FUNCTION DhcpHlprIsV4PolicyWellFormed(
[in] LPDHCP_POLICY pPolicy
);
Parameters
[in] pPolicy
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.
- Every clause in the policy condition must have a valid parent expression.
- Every expression in the policy structure must have conditions or other expressions as children.
- Only one expression must be the root expression.
- All non-root expressions must have valid parent expression.
- There must be no cyclic relationship between the expressions. Each expression must have the parent expression index lesser than that of itself.
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | dhcpsapi.h |
Library | Dhcpsapi.lib |
DLL | Dhcpsapi.dll |