Results 1 to 7 of 7

Thread: Open and Close Internet Connection

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    30

    Open and Close Internet Connection

    is there a way to open and close the default internet connection using visual basic code?

    Regards,
    Raman

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Open and Close Internet Connection

    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

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2006
    Posts
    30

    Re: Open and Close Internet Connection

    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

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Open and Close Internet Connection

    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
    Chris

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: Open and Close Internet Connection

    Quote Originally Posted by the182guy

    I hope your not trying to make what I think your trying to make
    which is?

  6. #6
    Lively Member Tw1sted L0gic's Avatar
    Join Date
    Jan 2005
    Posts
    88

    Re: Open and Close Internet Connection

    This class should do the trick:
    http://www.darkvb.com/forum/showthread.php?t=56
    Naughty but Nice

  7. #7
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Open and Close Internet Connection

    Quote Originally Posted by Tw1sted L0gic
    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
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width