DelphiFAQ Home Search:

API call to make a dialup network connection

 

comments1 comments. Current rating: 1 stars (1 votes). Leave comments and/ or rate it.

Question:

How does the API call to make a dialup network connection look like?

Answer:

The following code creates an internet connection through dialup networking:

uses
  WinInet;

procedure TForm1.Button1Click(Sender: TObject);
begin
  if not InternetAutodial(INTERNET_AUTODIAL_FORCE_ONLINE, Application.Handle) then
    MessageDlg('No internet connection', mtError, [mbOk], 0);
end;
You don't like the formatting? Check out SourceCoder then!
Content-type: text/html

Comments:

2007-04-19, 16:40:44
anonymous from Brisbane in Queensland, Australia  
rating
Its bad doesn't work

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: