A search turned up some simple functions for testing the status of an internet connection, but I'm getting an error. Not sure if the info was obsolete, if I'm misunderstanding how they work, or if its just a simple syntax mistake. The error message that pops up says:
"Can't find DLL entry point GetInternetConnectedState in wininet.dll"
Here's how the function is declared:
Private Declare Function GetInternetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal dwReserved As Long) As Long
And its called by:
varStatus = GetInternetConnectedState(0&, 0&)
Any help with the above would be greatly appreciated, or alternatively, if there's a better\easier way to accomplish what I need.
Thanks in advance.
"Can't find DLL entry point GetInternetConnectedState in wininet.dll"
Here's how the function is declared:
Private Declare Function GetInternetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Long, ByVal dwReserved As Long) As Long
And its called by:
varStatus = GetInternetConnectedState(0&, 0&)
Any help with the above would be greatly appreciated, or alternatively, if there's a better\easier way to accomplish what I need.
Thanks in advance.