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