VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Determine if a computer is connected to the Internet

Anonymous  (267 Submissions)   Internet/HTML   Visual Basic 4.0 (32-bit)   Unknown Difficulty   Sun 13th December 1998   Mon 8th February 2021

Determine if a computer is connected to the Internet

API Declarations


Public Declare Function RasGetConnectStatus Lib "RasApi32.dll" Alias "RasGetConnectStatusA" (ByVal hRasCon As Long, lpStatus As Any) As Long
'
Public Const RAS95_MaxEntryName = 256
Public Const RAS95_MaxDeviceType = 16
Public Const RAS95_MaxDeviceName = 32
'
Public Type RASCONN95
dwSize As Long
hRasCon As Long
szEntryName(RAS95_MaxEntryName) As Byte
szDeviceType(RAS95_MaxDeviceType) As Byte
szDeviceName(RAS95_MaxDeviceName) As Byte
End Type
'
Public Type RASCONNSTATUS95
dwSize As Long
RasConnState As Long
dwError As Long
szDeviceType(RAS95_MaxDeviceType) As Byte
szDeviceName(RAS95_MaxDeviceName) As Byte
End Type

Rate Determine if a computer is connected to the Internet (1(1 Vote))
Determine if a computer is connected to the Internet.bas

Determine if a computer is connected to the Internet Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters