There is a DHCP Server management API DhcpGetClientInfo() with which DHCPUser can get the information about DHCP Clients.
There are three way to figure out the information for the client with the above API.
- The first one is by specifing ClientIPAddress in DHCP_SEARCH_INFO structure.
- The second way is by specifing the ClientName in DHCP_SERACH_INFO structure.
- The third one and the trickest one is by specify the MAC addess. For particular MAC address there can be more the one address assigned to client in differnt subnets so while doing the search the API caller should specify in which subnet one wants to perform the serach.
Read more : Microsoft Windows DHCP Team Blog