Group: IP Helper - Library: iphlpapi
The IpRenewAddress function renews a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP).
DWORD IpRenewAddress(
PIP_ADAPTER_INDEX_MAP AdapterInfo
);
DECLARE INTEGER IpRenewAddress IN iphlpapi;
STRING @ AdapterInfo
AdapterInfo [in] Pointer to an IP_ADAPTER_INDEX_MAP structure that specifies the adapter associated with the IP address to renew.
If the function succeeds, the return value is NO_ERROR.
Normally this functionality is achieved through IPCONFIG /renew call.