I have used the following api but dosent seem to work
Its result dosent change if i am connected to the net or not
the key thing is that i dont wish to connect to the internet if it is not connected and i dont wish to use any net rescources i just want to see if the modem is connected
Private Declare Function InetIsOffline Lib "url.dll" (ByVal dwFlags As Long) As Long
Private Sub Form_Load()
'KPD-Team 2001
'URL: 'E-Mail: KPDTeam@Allapi.net
'InetIsOffline returns 0 if you're connected
MsgBox "Are you connected to the internet? " + CStr(CBool(InetIsOffline(0))), vbInformation
End Sub
Its result dosent change if i am connected to the net or not
the key thing is that i dont wish to connect to the internet if it is not connected and i dont wish to use any net rescources i just want to see if the modem is connected
Private Declare Function InetIsOffline Lib "url.dll" (ByVal dwFlags As Long) As Long
Private Sub Form_Load()
'KPD-Team 2001
'URL: 'E-Mail: KPDTeam@Allapi.net
'InetIsOffline returns 0 if you're connected
MsgBox "Are you connected to the internet? " + CStr(CBool(InetIsOffline(0))), vbInformation
End Sub