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?