Solved

Connecting and disconnecting from Internet

Posted on 1998-06-30
2
124 Views
Last Modified: 2010-04-04
I am using set of TCPIP components to connect to Internet
My app just connects to Net, downloads single html page, then exits. I need to shut down the dial-up connection before exiting my application. Is there any API call or message or something else? I don't wanna set the timeout delay for the connection - I want to shut down the connection programmatically .

Any suggestions? Please, help!

Bocian...
0
Comment
Question by:Bocian
2 Comments
 
LVL 10

Accepted Solution

by:
Jacco earned 100 total points
Comment Utility
Use the RASAPI function call

RassHangUp(RasCon);

You will need Ras.Pas the Delphi header for the RASAPI.
It is translated by Davide Moretti.

Let me know if you find it. I have a sample app that can call do the calling.

If you want to do the hanging up at shut down use the OnCloseQuery of the Form. HangUp the RasConnection there.
0
 

Author Comment

by:Bocian
Comment Utility
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now