i tried to write program adding ip address using this function
DWORD AddIPAddress(
__in IPAddr Address,
__in IPMask IpMask,
__in DWORD IfIndex,
__out PULONG NTEContext,
__out PULONG NTEInstance
);
I have added it but how can I delete it. DeleteIPAddress takes NTEContext as Parameter how can i get it in MSDN they write it is returned by AddIPAddress function but when i call it for the second time with the same ip address it returns an error 2. What to do?
I can view add ip addresses using Ipconfig command in cmd, may be there is some other method to view or delete it manually
You can’t do this. From MSDN:
The lifetime of the added address is as shown here: