Article View: borland.public.cppbuilder.nativeapi
Article #7850Re: RAS Problem Persisting
From: Remy Lebeau (TeamB)
Date: Thu, 16 Dec 2004 23:54
Date: Thu, 16 Dec 2004 23:54
25 lines
1889 bytes
1889 bytes
"Pedram" <Pedram@Internet.Network> wrote in message
news:41c213ea@newsgroups.borland.com...
> I wrote this lines to catch them but I dont know how could I use RasDial()
RasGetEntryDialParams() fills in a RASDIALPARAMS structure. RasDail()
expects a RASDIALPARAMS structure as input. So what exactly are you having
a problem with? You call RadGetEntryDialParams() to fill in the structure
and then pass it to RasDial() afterwards:
int Dial(LPTSTR Connection)
{
RASDIALPARAMS rdp = {sizeof(RASDIALPARAMS), 0};
HRASCONN hrc = NULL;
BOOL bPassword = FALSE;
strncpy(rdp.szEntryName, Connection, RAS_MaxEntryName);
int ret = RasGetEntryDialParams(NULL, &rdp, &bPassword);
if( ret == 0 )
ret = RasDial(NULL, NULL, &rdp, 0xFFFFFFFF, NULL, &hrc);
return ret;
}
Gambit
Technical Details
Message-ID:
<41c2200b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41c04357@newsgroups.borland.com> <41c07ea9$1@newsgroups.borland.com> <41c213ea@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aa1ee9ae2d3a35cd X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41c04357@newsgroups.borland.com> <41c07ea9$1@newsgroups.borland.com> <41c213ea@newsgroups.borland.com> Subject: Re: RAS Problem Persisting Date: Thu, 16 Dec 2004 15:54:26 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41c2200b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103241227 68.69.17.41 (16 Dec 2004 15:53:47 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail