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
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