does anyone of you know how to disconnect from internet, when the connection is done via automatic-dial-up networking?
Here what I want to do, in more detail:
I am writing an automated FTP client using a freeware FTP component. The client shall connect to internet (via dial-up), then upload something, then disconnect.
Connecting works fine, because windows connects automatically, when I do the ftp.connect
command. But how can I disconnect, after the upload is finished?
Althogh windows disconnects automatically after say 10 minutes, this is not satisfying.
I already know that I need some WinApi functions (e.g. RasEnumConnections and RasDisconnect or something like that), but how to do it in Delphi 3.0??
Are there componetns?