Re: IP release & renew
From: Paul G. Tobey [eMVP] (ptobey)
Date: 08/30/04
- Next message: Alex Feinman [MVP]: "Re: using foreach Vs for"
- Previous message: Paul G. Tobey [eMVP]: "Re: C#-App doesn't run (Win CE device, Compact Framework included)"
- In reply to: Matteo Gabella: "IP release & renew"
- Next in thread: Alex Feinman [MVP]: "Re: IP release & renew"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Alex Feinman [MVP]: "Re: using foreach Vs for"
- Previous message: Paul G. Tobey [eMVP]: "Re: C#-App doesn't run (Win CE device, Compact Framework included)"
- In reply to: Matteo Gabella: "IP release & renew"
- Next in thread: Alex Feinman [MVP]: "Re: IP release & renew"
- Messages sorted by: [ date ] [ thread ]