WinFakt! - (7759 of 826526 - 1%) 

 Home | Tips & Tricks | General Info | Downloads | NG Archive | Links | Email | Search | Register | Users | Login

 


 

Tips & Tricks

 

Rating: 60% (3 votes registred)
Rate this item:

Back to list

Is there a function to disconnect a internet connection?

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)
      


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

© 2002 Bekz.net, Inc. All Rights Reserved.