Click to See Complete Forum and Search --> : Disconnect From Dial-Up Connection
CreepingDeath
May 17th, 2000, 02:02 AM
Does anyone know a function that will hang up my modem from a dial-up connection with my ISP? Possibly with winsock or something? I know my modem disconnect string, if there is a way to give commands directly TO modem rather than THROUGH the modem. Thanks.
-CD
Stevie-O
May 17th, 2000, 03:56 AM
This may be useful:
--------------------------------------------------------
InternetHangUp Function
--------------------------------------------------------
Instructs the modem to disconnect from the Internet.
Syntax
DWORD InternetHangUp(
IN DWORD dwConnection,
IN DWORD dwReserved
);
dwConnection
Unsigned long integer value that contains the number assigned to the connection to be disconnected.
dwReserved
Reserved. Must be set to zero.
Declare Function InternetHangup Lib "wininet" (ByVal dwConnection As Long, ByVal dwReserved As Long) As Long
Try InternetHangup(0, 0)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.