[DllImport("wininet.dll", SetLastError=true)]
extern static bool InternetGetConnectedState(
out InternetGetConnectedStateFlags Description, int ReservedValue);
Private Declare Function InternetGetConnectedState Lib "wininet.dll" _
(ByRef dwFlags as Long, ByVal dwReserved as Long) as Long
InternetGetConnectedStateFlags
Private Enum ConnectionStates
Modem = &H1
LAN = &H2
Proxy = &H4
RasInstalled = &H10
Offline = &H20
Configured = &H40
End Enum
Please add some!
C: http://support.microsoft.com/default.aspx?scid=kb;EN-US;242558
C#: http://www.aspemporium.com/aspEmporium/cshrp/howtos/howto.asp?hid=27
Do you know one? Please contribute it!
Direct Link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetgetconnectedstate.asp