We help IT Professionals succeed at work.

Release and Renew IP address in Win2000 using IPHLPAPI.DLL

h9925631
h9925631 asked
on
I am new to VC++, and I need to release and renew IP address programmtically in Windows 2000. I know that the IPHLPAPI.DLL can do that. And I have sucessfully get the adapter info. by using the GetAdapterInfo function provided by the IPHLPAPI library.

But how to get the IP_ADAPTER_INDEX_MAP and put to the IPReleaseAddress and IPRenewAddress function?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2012
Commented:
Here's a VB sample that I once found - maybe it helps: http://www.mvps.org/vbnet/index.html?code/network/dhcp_releaserenewaddress.htm ("How to Release and Renew DHCP IP Addresses")
jkr
CERTIFIED EXPERT
Top Expert 2012

Commented:
BTW, the docs can be found at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tcpip/ipover_427n.asp - other than that, the MS info is pretty sparse...

Author

Commented:
Thx!!
I got it!!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.