Foros del Web » Programación para mayores de 30 ;) » Programación General »

como detecto conexion?

Estas en el tema de como detecto conexion? en el foro de Programación General en Foros del Web. Como hago para saber si la maquica esta conectada a internet. Solo eso. gracias :)...
  #1 (permalink)  
Antiguo 10/09/2002, 18:32
 
Fecha de Ingreso: julio-2001
Mensajes: 52
Antigüedad: 22 años, 9 meses
Puntos: 0
como detecto conexion?

Como hago para saber si la maquica esta conectada a internet. Solo eso.

gracias :)
  #2 (permalink)  
Antiguo 10/09/2002, 21:51
 
Fecha de Ingreso: septiembre-2002
Mensajes: 7
Antigüedad: 21 años, 7 meses
Puntos: 0
Re: como detecto conexion?

Fijate que tenga en el Tray (al lado del reloj) en la barra de inicio, DOS COMPUTADORAS.

If Flag = True then
Msgbox "ESTAS CONECTADO.", vbinformation
else
Msgbox "ESTAS OUT.",vbCritical
End If

Saludos!
  #3 (permalink)  
Antiguo 11/09/2002, 03:05
 
Fecha de Ingreso: abril-2002
Mensajes: 438
Antigüedad: 22 años
Puntos: 2
Re: como detecto conexion?

De Microsoft:

'Function Name: InternetGetConnectedState
'Goal: Retrieves the connected state of the local system.
'Returns: Returns TRUE if there is an Internet connection, FALSE otherwise.
'Arguments
'lpdwFlags: Address of a double-word variable where the connection
' description should be returned. Can be a combination of
' the following values:
' INTERNET_CONNECTION_MODEM Local system uses a modem
' to connect to the Internet.
' INTERNET_CONNECTION_LAN Local system uses a local
' area network to connect to
' the Internet.
' INTERNET_CONNECTION_PROXY Local system uses a proxy
' server to connect to the Internet.
' INTERNET_CONNECTION_MODEM_BUSY Local system's modem is busy
' with a non-Internet connection.

'dwReserved: Reserved. Must be set to zero.

Así que:

Public Declare Function _
InternetGetConnectedState Lib "wininet.dll" (lpdwFlags As Long, _
ByVal dwReserved As Long) As Long
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 12:55.