Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an Internet Connection

Status
Not open for further replies.

briby

Programmer
Apr 24, 2002
13
GB
Hi there!
Working on a program that will connect to the internet and am having a problem. I am detecting whether they have internet setup etc with - InternetGetConnectedState(@dwConnectionTypes, 0); - and then checking the contents of dwConnectionTypes for various values and then following this with a - InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE or INTERNET_AUTODIAL_FORCE_UNATTENDED, 0); - when necessary.

Which is working fine except when you've selected the 'Work Offline' in IE, the first call detects it is offline (i.e. INTERNET_CONNECTION_OFFLINE) but the question is how do I get it back online, similar functionality to IE when you go to a page not stored locally and you get the 'Web page unavailable while offline - Connect/Stay Offline' prompt.

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top