Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 1.1 KB

IpRenewAddress.md

File metadata and controls

49 lines (31 loc) · 1.1 KB

Home

Function name : IpRenewAddress

Group: IP Helper - Library: iphlpapi


The IpRenewAddress function renews a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP).


Code examples:

How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)

Declaration:

DWORD IpRenewAddress(
	PIP_ADAPTER_INDEX_MAP AdapterInfo
);
  

FoxPro declaration:

DECLARE INTEGER IpRenewAddress IN iphlpapi;
	STRING @ AdapterInfo  

Parameters:

AdapterInfo [in] Pointer to an IP_ADAPTER_INDEX_MAP structure that specifies the adapter associated with the IP address to renew.


Return value:

If the function succeeds, the return value is NO_ERROR.


Comments:

Normally this functionality is achieved through IPCONFIG /renew call.