This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: How to check web connection stauts!?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 17, 2008
11:13 PM
How to check web connection stauts!?
Hi guys
Do you know any function call or method to check web conncetion staus?
I just simply wanna know is internet avaiable at end user's machine.
Thanks.~
Do you know any function call or method to check web conncetion staus?
I just simply wanna know is internet avaiable at end user's machine.
Thanks.~
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 18, 2008
03:36 AM
I am using an InstallScript CA and call InternetGetConnectedState function (Wininet.dll).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2008
02:25 AM
Hi Holger~
It sounds like a good idea.
Could you please explain more or attach some codes.
Thanks a lot
It sounds like a good idea.
Could you please explain more or attach some codes.
Thanks a lot
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2008
04:58 AM
Something like this:
But note, that InternetGetConnectedState returns the state only so you may want to evaluate that a little more deeper.
prototype Wininet.InternetGetConnectedState(POINTER, NUMBER);
nResult = UseDLL (WINSYSDIR ^ "Wininet.dll");
bInternet = (InternetGetConnectedState(&dwState, 0) != 0);
UnUseDLL ("Wininet.dll");
But note, that InternetGetConnectedState returns the state only so you may want to evaluate that a little more deeper.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2008
05:45 AM
:eek:
Hi there~
It does work fine~ Thanks.
One more quick question for ya, if u can reply in ease.
Do you have tipis or code example about using InternetGetConnectedStateEx?
I try to use InternetGetConnectedStateEx(0, url, dwNameLen, dwReserved), but I cannot retrive any value from the function call.
Many many thanks to Germany!!
Hi there~
It does work fine~ Thanks.
One more quick question for ya, if u can reply in ease.
Do you have tipis or code example about using InternetGetConnectedStateEx?
I try to use InternetGetConnectedStateEx(0, url, dwNameLen, dwReserved), but I cannot retrive any value from the function call.
Many many thanks to Germany!!
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)