Use wininet to connect to the internet

Posted on 2007-07-19
Last Modified: 2012-06-27
I need code that will check if connected to the internet and if not connect them no matter what they use eg Dial-up or Lan or? Then disconnect.
Seen a lot of Wininet examples, but not sure if they work for only dial-up
Question by:isnoend2001
    LVL 48

    Accepted Solution

    Have a look on this example

    Author Comment

    Thanks jpaulino
    I no longer need code to check if they are connected. The link you provided opens the prompt for them to
    connect. I want to connect them without the prompt. And disconnect

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now