Erdenemandal
Regular
Hi, ALL
I have a problem to get "Network status". I use
and check function
and I always returns me "TRUE", even I took a network cable out.
Please, help me HOW I can get REAL network connection STATUS.
Thanks,
Erdenemandal
I have a problem to get "Network status". I use
Code:
Private Declare Function InternetGetConnectedState Lib "wininet.dll" ( _
ByRef lpSFlags As Long, _
ByVal dwReserved As Long) _
As Boolean
Private Declare Function InternetGetConnectedState Lib "wininet.dll" ( _
ByRef lpdwFlags As Integer, _
ByVal dwReserved As Integer) _
As Boolean
and check function
Code:
Public Function IsConnectedLife() As Boolean
Dim dwflags As Integer
'Returns true if there is any internet connection.
IsConnectedLife = InternetGetConnectedState(dwflags, 0)
End Function
and I always returns me "TRUE", even I took a network cable out.
Please, help me HOW I can get REAL network connection STATUS.
Thanks,
Erdenemandal