-
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
-
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.
Code:
Declare Function InternetHangup Lib "wininet" (ByVal dwConnection As Long, ByVal dwReserved As Long) As Long
Try InternetHangup(0, 0)