Platform SDK: Internet Protocol Helper

IpRenewAddress

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    // identifies the adapter
);

Parameters

AdapterInfo
Pointer to an IP_ADAPTER_INDEX_MAP structure that identifies the adapter associated with the IP address to renew.

Return Values

If the function succeeds, the return value is NO_ERROR.

If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iphlpapi.h.
  Library: Use Iphlpapi.lib.

See Also

IpReleaseAddress