CHANGING IP ADDRESS

QUESTION: Is there an official, documented, supported way to
programatically change IP addresses on a Windows 2000 based computer
without rebooting the system?

BACKGROUND: We have a portable computer that must be connected to two
separate networks. When plugged into one network it must assume a fixed IP
address to work with the software designed on that other network. It is
highly undesirable to change that software. This system must then also be
unplugged from this one network and plugged into another network where it
will receive it’s IP address from a DHCP server, but the system will not be
shut down when moved.

I have found examples of loading up the dhcp client dll and using it to
change the IP address, which worked under NT, but the problem with this way
is that it is not officially supported and would not last through a
Critical Design Review with our customers.

I have looked through the TDI interface to see if there was anything that
made sense, but didn’t see anything that caught my eye (even though I admit
I could perform a more thourough search).

Can this be done?

Thank you,
Shaun

Certainly. Take a look at the function AddIPAddres() and friends
in the library iphlpapi.lib

QUESTION: Is there an official, documented, supported way to
programatically change IP addresses on a Windows 2000 based computer
without rebooting the system?