I have some code from VB that checks the wininet.dll file using the lib function as below:

Public Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpSFlags, ByVal dwReserved ) End Function

Can this be done in VBscript, I'm having a tough time finding any information on this.

The goal is to retrieve the connection flags from the dll to verify someone's online status.

Any help much appreciated.

Thanks,

Rossco