Accessing network settings
-
Hey everyone! I'm trying to create a utility which allows me to switch network settings on my Windows 2000 system. The purpose of this is to allow me to have two different configurations for my LAN connection - one for at home using a static IP address and a DHCP account for work. My question is this: how can I programatically access the network settings under Windows 2000? Specifically I need to get and set the TCP/IP settings for a network adapter, and disable/enable it. I'm guessing that the information can be accessed in the registry somewhere within HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet, but there has to be an API that exposes this in a more sane way. Thanks!
-
Hey everyone! I'm trying to create a utility which allows me to switch network settings on my Windows 2000 system. The purpose of this is to allow me to have two different configurations for my LAN connection - one for at home using a static IP address and a DHCP account for work. My question is this: how can I programatically access the network settings under Windows 2000? Specifically I need to get and set the TCP/IP settings for a network adapter, and disable/enable it. I'm guessing that the information can be accessed in the registry somewhere within HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet, but there has to be an API that exposes this in a more sane way. Thanks!