Use wininet to connect to the internet

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
isnoend2001Asked:
Who is Participating?
 
Jorge PaulinoConnect With a Mentor IT Pro/DeveloperCommented:
Have a look on this example http://www.developerfusion.co.uk/show/1909/
0
 
isnoend2001Author Commented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.