Solved

Connecting and disconnecting from Internet

Posted on 1998-06-30
2
133 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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

756 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