> I' am using InternetGetConnectedState to determine if I' am connected to the
> internet. All works well except when the connection is a wireless
> connection. The connection is fine and I can access the internet but
> InternetGetConnectedState returns false. I must be missing something.
The only reliable way to determine if you've got an internet connection is
to actually try and connect to something. InternetGetConnectedState (and any
other means other than actually connecting) are not 100% reliable.

Signature
Mike
Microsoft MVP Visual Basic
This should work in all situations , on my systems it does ( DIALUP , DSL ,
WIFI )
Private Const FLAG_ICC_FORCE_CONNECTION = &H1
Private Declare Function InternetCheckConnection Lib "wininet.dll" Alias
"InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As Long,
ByVal dwReserved As Long) As Long
Private Sub Form_Load()
If InternetCheckConnection("http://www.google.com/",
FLAG_ICC_FORCE_CONNECTION, 0&) = 0 Then
MsgBox "Connection tohttp://www.google.com/ failed!", vbInformation
Else
MsgBox "Connection to http://www.google.com/ succeeded!",
vbInformation
End If
End Sub
ofcourse this will only fail if the reference site is down
happy coding :-)
M. Posseth [MCP]
> I' am using InternetGetConnectedState to determine if I' am connected to the
> internet. All works well except when the connection is a wireless
> connection. The connection is fine and I can access the internet but
> InternetGetConnectedState returns false. I must be missing something.
>
> Thanks in advance of any help.