DHCP_CLIENT_INFO_V4 structure (dhcpsapi.h)

The DHCP_CLIENT_INFO_V4 structure defines a client information record used by the DHCP server, extending the definition provided in DHCP_CLIENT_INFO by including client type information.

Syntax

typedef struct _DHCP_CLIENT_INFO_V4 {
  DHCP_IP_ADDRESS ClientIpAddress;
  DHCP_IP_MASK    SubnetMask;
  DHCP_CLIENT_UID ClientHardwareAddress;
  LPWSTR          ClientName;
  LPWSTR          ClientComment;
  DATE_TIME       ClientLeaseExpires;
  DHCP_HOST_INFO  OwnerHost;
  BYTE            bClientType;
} DHCP_CLIENT_INFO_V4, *LPDHCP_CLIENT_INFO_V4;

Members

ClientIpAddress

DHCP_IP_ADDRESS value that contains the assigned IP address of the DHCP client.

SubnetMask

DHCP_IP_MASK value that contains the subnet mask value assigned to the DHCP client.

ClientHardwareAddress

DHCP_CLIENT_UID structure containing the MAC address of the client's network interface device.

ClientName

Unicode string that specifies the network name of the DHCP client. This member is optional.

ClientComment

Unicode string that contains a comment associated with the DHCP client. This member is optional.

ClientLeaseExpires

DATE_TIME structure that contains the date and time the DHCP client lease will expire, in UTC time.

OwnerHost

DHCP_HOST_INFO structure that contains information on the DHCP server that assigned the IP address to the client.

bClientType

Specifies the types of dynamic IP address service used by the client.

Value Meaning
CLIENT_TYPE_UNSPECIFIED
The client's dynamic IP address protocol is unknown.
CLIENT_TYPE_DHCP
The client uses DHCP for dynamic IP address service.
CLIENT_TYPE_BOOTP
The client uses BOOTP for dynamic IP address service.
CLIENT_TYPE_BOTH
The client can use either DHCP or BOOTP for dynamic IP address service.
CLIENT_TYPE_NONE
The client does not use a supported dynamic IP address service.

Requirements

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

See also

DATE_TIME

DHCP_CLIENT_INFO_ARRAY_V4

DHCP_CLIENT_UID

DHCP_HOST_INFO

DhcpGetClientInfoV4