Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Connecting and disconnecting from Internet

Posted on 1998-06-30
2
Medium Priority
?
141 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 400 total points
ID: 1356575
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
ID: 1356576
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Integration Management Part 2
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

971 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