static IP address setting API

Hi,
Anybody know what API W2k and XP uses to set the IP address, subnet mask, default gateway and DNS server IPs on an adapter through the Internet Protocol (TCP/IP) Properties dialog, invoke through the adapter’s Properties page. The IpHelpAPI has AddIPAddress on an adapter but how to add default gateway and DNS servers IPs?
Thanks in advance.

Jicun Zhong