Platform SDK: Internet Protocol Helper

IpReleaseAddress

The IpReleaseAddress function releases an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP).

DWORD IpReleaseAddress(
  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 release.

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

IpRenewAddress