Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Connecting and disconnecting from Internet

Posted on 1998-06-30
2
Medium Priority
?
140 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

688 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