InternetGetConnectedStateEx Returns wrong value (sometimes) (1 Viewer)

Martin Beney

Registered User.
Local time
Today, 12:01
Joined
Mar 22, 2007
Messages
27
Hi,
I'm using InternetGetConnectedStateEx to get the name of the current Internet Connection.

Apparently randomly it will not return the correct connection name. Instead it returns 'LAN Connection', if the LAN is enabled, or 'none' if the LAN is disabled.

I can find no consistency to the problem. I can run the same job many times and it will work sometimes, and fail sometimes.

Anyone any ideas? I am totally stuck at the moment as it seems a random error and I have no way to trace it!

Thanks
Martin
 

Users who are viewing this thread

Top Bottom