How can I check if there is an active internet connection? It needs to work on a LAN going through a proxy server...

I've tried
http://www.vb-world.net/tips/tip27.html

Which doesn't work, but one of the replies mentioned using

Code:
Private Declare Function InternetGetConnectedStateEx Lib "wininet.dll" Alias "InternetGetConnectedStateExA" (ByRef lpdwFlags As Long, ByVal lpszConnectionName As String, ByVal dwNameLen As Long, ByVal dwReserved As Long) As Long
but I have no idea what values to provide for all the arguments this function requires...

Help!!

------------------
Matthew Ralston
E-Mail: [email protected]
ICQ: 31422892
Web Site: My Home Page
AKA: ...::: The Fragmeinster :::... (On Quake 3 World Forums)

Sorry about my English, but my Scouse is dead good!