Click to See Complete Forum and Search --> : Disconnect from the internet using VB


nielst2
January 4th, 2000, 01:21 PM
Hey!
I can't find a way to disconnect from the internet with a VB 6.0 program.

I tried this http://www.vb-world.net/internet/tip21.html
But VB don't accept the first 5 lines and this part:

Public Declare Function RasHangUp Lib "rasapi32.dll" Alias _
"RasHangUpA" (ByVal hRasConn As Long) As LongPublic gstrISPName As String
Public ReturnCode As Long

Anyone have a way to do this, or corrections for the codes above

Thanks!

Niels

wilton
January 4th, 2000, 04:37 PM
Try http://www.freevbcode.com, they have an example of how to hang up on their web site.