Yes there is! ;-))There is a InternetAutodialHangup function in the Windows API to accomplish that. We can make a wrapper for it like this:
DLL32 FUNCTION ;
HangUpCon( Dwreserve AS LONG ) ;
AS BOOL PASCAL FROM "InternetAutodialHangup" ;
LIB "WinInet.DLL"
To hang up any connection use:
HangUpCon(0)