Link to home
Start Free TrialLog in
Avatar of neshkov
neshkov

asked on

Disconnect Internet connection

Hi all,
Is there a solution to disconnect a Internet connection - computer connected to the Internet via LAN.
Thanks in advance.
Avatar of GloomyFriar
GloomyFriar

What do you mean saying "disconnect".
Unplug the network cable ;-)
Avatar of neshkov

ASKER

No...Terminate, disconnect.... something like "RasHangUp( )" and RASAPI32.DLL.
If you are connected "via LAN" how you can do "HangUp"?
You are disconnected till a 1. programm from your computer will send a request to a remote computer or
2. programm from remote computer will send a request to your computer.

If you want to prevent case 2 then you need some kind of firewall.
Avatar of neshkov

ASKER

May be there is a way to close handles that are created and used by the WinINet functions ( any Internet handle or subtree of handles of the type HINTERNET) and free any associated resources with InternetCloseHandle(). ...just a thought!
What is the 'global' idea?
What you need?
ASKER CERTIFIED SOLUTION
Avatar of pr_wainwright
pr_wainwright

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of neshkov

ASKER

Thanks Paul!