DHCP_SEARCH_INFO structure (dhcpsapi.h)
The DHCP_SEARCH_INFO structure defines the DHCP client record data used to search against for particular server operations.
Syntax
typedef struct _DHCP_CLIENT_SEARCH_INFO {
DHCP_SEARCH_INFO_TYPE SearchType;
#if ...
union {
DHCP_IP_ADDRESS ClientIpAddress;
DHCP_CLIENT_UID ClientHardwareAddress;
LPWSTR ClientName;
} SearchInfo;
#if ...
_DHCP_CLIENT_SEARCH_UNION _DHCP_CLIENT_SEARCH_UNION;
#else
union {
DHCP_IP_ADDRESS ClientIpAddress;
DHCP_CLIENT_UID ClientHardwareAddress;
LPWSTR ClientName;
} SearchInfo;
#endif
#else
_DHCP_CLIENT_SEARCH_UNION _DHCP_CLIENT_SEARCH_UNION;
#endif
} DHCP_SEARCH_INFO, *LPDHCP_SEARCH_INFO;
Members
SearchType
DHCP_SEARCH_INFO_TYPE enumeration value that specifies the data included in the subsequent member of this structure.
SearchInfo
SearchInfo.ClientIpAddress
DHCP_IP_ADDRESS value that specifies a client IP address. This field is populated if SearchType is set to DhcpClientIpAddress.
SearchInfo.ClientHardwareAddress
DHCP_CLIENT_UID structure that contains a hardware MAC address. This field is populated if SearchType is set to DhcpClientHardwareAddress.
SearchInfo.ClientName
Unicode string that specifies the network name of the DHCP client. This field is populated if SearchType is set to DhcpClientName.
_DHCP_CLIENT_SEARCH_UNION
Requirements
Requirement | Value |
---|---|
Minimum supported client | None supported |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | dhcpsapi.h |