PDA

Click to See Complete Forum and Search --> : Open and Close Internet Connection


raman_xs
Feb 21st, 2006, 03:03 AM
is there a way to open and close the default internet connection using visual basic code?

Regards,
Raman

Pino
Feb 21st, 2006, 03:26 AM
Have a look at.. these api's

InternetAttemptConnect
InternetCheckConnection
InternetCloseHandle
InternetCombineUrl
InternetConnect
InternetFindNextFile
InternetGetConnectedState
InternetGetConnectedStateEx
InternetGetLastResponseInfo
InternetOpen

Located...

http://www.mentalis.org/apilist/i.shtml

raman_xs
Feb 21st, 2006, 03:40 AM
thanks a lot for your immediate response.

I'm developing a banner advertisement application for an ISP.

The internet connection on the client machine should close as soon as the user closes this banner application. After this, I need to show the re-connect window to the user.

Any suggestions with code examples would be of great help.

Regards,
Raman

the182guy
Feb 21st, 2006, 11:43 AM
Well if they use a router as an internet access point which a lot of people do (including me) you cant shut down the internet connection, only the network connection to the router. Which the user can just enable manually to get internet access.

If this is for an ISP it should be planned, everything should be planned and tested, there should be some kind of feasibilty report detailing methods and requirements for the application. You dont seem to have any thoughts, only the vague app requirements.

I hope your not trying to make what I think your trying to make

Pino
Feb 21st, 2006, 04:12 PM
I hope your not trying to make what I think your trying to make

which is?

Tw1sted L0gic
Feb 23rd, 2006, 04:09 PM
This class should do the trick:
http://www.darkvb.com/forum/showthread.php?t=56

the182guy
Feb 23rd, 2006, 06:51 PM
This class should do the trick:
http://www.darkvb.com/forum/showthread.php?t=56

Why do you help people write viruses? That site has nothing but malicious code and your the admin, someone should remove the link