cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Brad_Peterson
Level 7

What is better, IsConnected(), or IsConnectedEx()?

In the documentation, I noticed it uses both IsConnect() and IsConnectEx(). And they both seem to work the same. And the way they are used in the documentation makes it appear that there really isn't a big difference between the two.

However, the description of each method is different:

IsConnect:  Is used by InstallShield-hosted customers to determine
whether an Internet connection has been established on the end user's
computer and whether the Update Service Notification Server is available.

If you are hosting the Notification Server (on-site deployment), use the
IsConnectedEx method instead of the IsConnected method.
IsConnectEx:  Is used by self-hosted customers to determine
whether an Internet connection has been established on the end user's
computer and whether the Update Service Notification Server is available.

If InstallShield is hosting the Notification Server (InstallShield-hosted),
use the IsConnected method instead of the IsConnectedEx method.
So, it sounds like I should be using IsConnect. But, the code in the documentation didn't act like there was an important difference, and it used both interchangibly. So, is that the case, can I use both without any worries? Or should I definitely use only one of these methods, and if so, which one?
0 Kudos
(2) Replies
Chandima
Level 7

You can use either interchangebly. However since you are hosted with InstallShield/Macrovision, IsConnected is the reccomended API.
0 Kudos
Brad_Peterson
Level 7

Thanks for the response. I have changed all my IsConnectEx() to IsConnect(), and it's working well.
0 Kudos