Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Accessing network settings

Accessing network settings

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadminwindows-admintoolsjson
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    LukeyBoy
    wrote on last edited by
    #1

    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!

    A 1 Reply Last reply
    0
    • L LukeyBoy

      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!

      A Offline
      A Offline
      adara
      wrote on last edited by
      #2

      The 'IP Helper API' is what you need ,check the platform SDK

      L 1 Reply Last reply
      0
      • A adara

        The 'IP Helper API' is what you need ,check the platform SDK

        L Offline
        L Offline
        LukeyBoy
        wrote on last edited by
        #3

        Thanks Adara, that's exactly what I need!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups