Re: IP release & renew

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Paul G. Tobey [eMVP] (ptobey)
Date: 08/30/04


Date: Mon, 30 Aug 2004 09:09:26 -0700

I don't have any P/Invoke code that shows it, but you basically need to call

DWORD IpReleaseAddress(
  PIP_ADAPTER_INDEX_MAP AdapterInfo
);

or

DWORD IpRenewAddress(
  PIP_ADAPTER_INDEX_MAP AdapterInfo
);

which I believe are both implemented in iphlpapi.dll. The structure that
each call accepts as a parameter is not terribly complicated. You can use
the OpenNETCF.Net namespace tools to get the adapter names and, I believe,
indices.

Paul T.

"Matteo Gabella" <gabu2000@tin.it> wrote in message
news:bda2e795.0408300611.4eafdc57@posting.google.com...
> hi all, i need to release and renew the IP address... (using VB.net)
> so i look in the newsgroups, and everybody talking about a
> AdapterInfo.zip file from www.alexfeinman.com, but the site is down...
> so i'm asking: does enybody have information about the file? or any
> other suggestions for me?
> thank you very much...
> matteo gabella