Delphi .NET (2) Database (71) Delphi IDE (90) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
API call to make a dialup network connection
1 comments. Current rating: (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!
Comments:
|