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. Hardware & Devices
  4. internet enable disable using registry in windows xp

internet enable disable using registry in windows xp

Scheduled Pinned Locked Moved Hardware & Devices
c++windows-adminjsonhelpquestion
2 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.
  • R Offline
    R Offline
    RehanAkhter
    wrote on last edited by
    #1

    How I can enable and disable internet using MFC or win32 api programmatically or I can use any registry settings for that? I am accessing internet using NIC. Any help....

    C 1 Reply Last reply
    0
    • R RehanAkhter

      How I can enable and disable internet using MFC or win32 api programmatically or I can use any registry settings for that? I am accessing internet using NIC. Any help....

      C Offline
      C Offline
      code frog 0
      wrote on last edited by
      #2

      This the place in your registry to munge with your NIC settings. Put in false information for the default gateway to cripple the internet, put in false settings for Subnet Mask to cripple the LAN put in false settings for IP address to cripple everything. I don't know if this will work without restarting. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces What I would instead do is Google "enable dhcp command line Windows XP" and you will see how you can invoke commands from the shell/command line to enable disable the network connection or you can search on NETSH. There are more ways to do this than there are airports in the world so this shouldn't be too hard if you search well on Google.


      My name is Maximus Decimus Meridius, Commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered process, husband to a murdered thread. And I will have my affinity, in this life or the next. - Gladiator. (Okay, not quite Gladiator but close.) I work to live. I do not live to work. My clients do not seem capable of grasping this fact. Ancient of days! august Athena! where, Where are thy men of might? - Lord Byron

      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