How to dynamically change local ip address?

I would like to change local windows2000 network configuration, as ip
address, dns, and so on, with a delphi application, does someone know...
"how to"?

Thanks.

Boris