System network implementation does that by itself.
Posted by turkinz
on 12/22/2005 09:07pm
Or, if you need to write your own API to get the IP form DHCP Server you need to see RFC's on DHCP and TCP/IP Specification and MSDN on TCP/IP programing. DHCP data are broadcast always to a fixed static IP address: 255.255.255.255
I think you should use IP Helper API for changing IP address. However i have never meet any situation when it was needed to do automatically. Just assign few IPs to your adapter and bind from app to address you need to use.