 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Greg@Woodwindsys.com.au Guest
|
Posted: Mon Oct 13, 2003 5:02 am Post subject: RasDial for Indy? |
|
|
Does anybody know if there are plans for a RasDial component to facilitete
connection to the ISP. I have looked at the RasGetEntryDialParams(),
RasDial(), and RasHangup() functions in the Win32 API and I suspect these
can only make sense after the consumption of large quantities of alcohol.
regards
--
Greg Kemmis
Woodwind Systems Pty Ltd
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Oct 13, 2003 5:23 am Post subject: Re: RasDial for Indy? |
|
|
"Greg (AT) Woodwindsys (DOT) com.au" <Greg (AT) WoodwindSys (DOT) com.au> wrote
| Quote: | Does anybody know if there are plans for a RasDial
component to facilitete connection to the ISP.
|
I doubt it, especially considering that there are already dozens of other
such components for that. Besides, Indy is a socket communications suite,
not a RAS suite.
| Quote: | I have looked at the RasGetEntryDialParams(), RasDial(),
and RasHangup() functions in the Win32 API and I suspect
these can only make sense after the consumption of large
quantities of alcohol.
|
They are not complex functions at all. The only requirement that is that
you have an existing entry in DUN (Dialup Networking) for the desired
connection (or use RasCreatePhonebookEntry() to make one). For example:
RASDIALPARAMS params = {0};
BOOL bHasPassword = FALSE;
params.dwSize = sizeof(RASDIALPARAMS);
StrLCopy(params.szEntryName, "My ISP Connection",
sizeof(params.szEntryName));
if( RasGetEntryDialParams(NULL, ¶ms, &bHasPassword) == 0 )
{
HRASCONN hRasConn = NULL;
if( RasDial(NULL, NULL, ¶ms, 0, NULL, &hRasConn) == 0 )
{
//...
RasHangup(hRasConn);
}
}
Gambit
|
|
| Back to top |
|
 |
Dany Rosseel Guest
|
Posted: Sat Oct 18, 2003 8:36 am Post subject: Re: RasDial for Indy? |
|
|
Hi,
I use now some routines from the unit "WinInet":
to dial:
InternetAutoDial( INTERNET_AUTODIAL_FORCE_ONLINE +
INTERNET_AUTODIAL_FORCE_UNATTENDED, 0)
and
to hang up:
InternetAutodialHangup(0);
See also http://msdn.microsoft.com/library/d...he_internet.asp
kind regards,
--
Vriendelijke groeten,
Dany Rosseel
E-mail: [email]dany_rosseel (AT) advalvas (DOT) be[/email]
Web Site (home) : http://users.skynet.be/bk296578/Dro/
Web Site (Delphi): http://users.skynet.be/bk296578/Dro/Delphi
----------------------------------------------------------------------------
--------------------------
"Greg (AT) Woodwindsys (DOT) com.au" <Greg (AT) WoodwindSys (DOT) com.au> schreef in bericht
news:3f8a3268$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Does anybody know if there are plans for a RasDial component to facilitete
connection to the ISP. I have looked at the RasGetEntryDialParams(),
RasDial(), and RasHangup() functions in the Win32 API and I suspect these
can only make sense after the consumption of large quantities of alcohol.
regards
--
Greg Kemmis
Woodwind Systems Pty Ltd
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|