DHCP_POL_COND structure (dhcpsapi.h)

The DHCP_POL_COND structure defines the DHCP server policy condition.

Syntax

typedef struct _DHCP_POL_COND {
  DWORD               ParentExpr;
  DHCP_POL_ATTR_TYPE  Type;
  DWORD               OptionID;
  DWORD               SubOptionID;
  LPWSTR              VendorName;
  DHCP_POL_COMPARATOR Operator;
  LPBYTE              Value;
  DWORD               ValueLength;
} DHCP_POL_COND, *PDHCP_POL_COND, *LPDHCP_POL_COND;

Members

ParentExpr

Integer that specifies the expression index that corresponds to this constituent condition.

Type

DHCP_POL_ATTR_TYPE enumeration that specifies the attribute type for this condition.

OptionID

DHCP_OPTION_ID value that specifies the unique option identifier for criteria based on DHCP options or sub-options.

SubOptionID

DHCP_OPTION_ID value that specifies the unique sub-option identifier.

VendorName

A pointer to a null-terminated Unicode string that represents the vendor name.

Operator

DHCP_POL_COMPARATOR enumeration that specifies the comparison operator for the condition.

Value

Pointer to an array of bytes that contains the value to be used for the comparison.

ValueLength

Integer that specifies the length of Value.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2012 [desktop apps only]
Header dhcpsapi.h

See also

DHCP_POL_COND_ARRAY