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. how to disconnect from internet?

how to disconnect from internet?

Scheduled Pinned Locked Moved C / C++ / MFC
questionsysadmintutorial
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.
  • J Offline
    J Offline
    Joseph Marzbani
    wrote on last edited by
    #1

    I use a computer at work connecting to a group (local network). I wonder how can I disconnect it from the Internet by code?

    Thank you masters!

    A 1 Reply Last reply
    0
    • J Joseph Marzbani

      I use a computer at work connecting to a group (local network). I wonder how can I disconnect it from the Internet by code?

      Thank you masters!

      A Offline
      A Offline
      Adam Roderick J
      wrote on last edited by
      #2

      Just search on google man :) clue:- INetConnectionManager in vc++ More clue:- u need three interface to do that INetConnection* pConnect INetConnectionManager* pMgr IEnumNetConnection* pEnum Using pMgr->EnumConnections( NCME_DEFAULT, &pEnum ) get all the connection Loop it and check whether "Local Area Connection" or what ever connection you want to check and call pConnect->Disconnect() to disconnect your NIC.

      Величие не Бога может быть недооценена.

      modified on Friday, August 7, 2009 12:20 AM

      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