Solved

Connecting and disconnecting from Internet

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 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

20 Experts available now in Live!

Get 1:1 Help Now