Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The DhcpHlprAddV4PolicyExpr function allocates, initializes, and adds a DHCP server policy expression to a DHCP server policy.
Syntax
DWORD DHCP_API_FUNCTION DhcpHlprAddV4PolicyExpr(
[in, out] LPDHCP_POLICY Policy,
[in] DWORD ParentExpr,
[in] DHCP_POL_LOGIC_OPER Operator,
[out] DWORD *ExprIndex
);
Parameters
[in, out] Policy
Pointer to a DHCP_POLICY structure that contains the policy to modify
[in] ParentExpr
Integer that specifies the expression index that corresponds to this constituent condition.
[in] Operator
A DHCP_POL_LOGIC_OPER enumeration that defines how the expression is to be evaluated in terms of the results of its constituents.
[out] ExprIndex
Pointer to a DWORD that contains the newly created expression's index in the DHCP server policy.
Return value
If the function succeeds, it returns ERROR_SUCCESS.
If the function fails, it returns one of the following or an error code from DHCP Server Management API Error Codes.
Value | Meaning |
---|---|
|
One or more of the parameters were invalid. |
|
Not enough memory available. |
|
The parent expression specified does not exist. |
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 |