Article View: borland.public.cppbuilder.nativeapi
Article #7849Re: RAS Problem Persisting
From: Pedram
Date: Thu, 16 Dec 2004 09:42
Date: Thu, 16 Dec 2004 09:42
33 lines
2033 bytes
2033 bytes
"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
news:41c07ea9$1@newsgroups.borland.com...
>
> "Pedram" <Pedram@Internet.Network> wrote in message
> news:41c04357@newsgroups.borland.com...
>
> > MAINLY , I want to get USERNAME / PASSWORD AND
> > TELEPHONE NUMBER TO DIAL of my internet account connections.
>
> Prompt the user for it. Otherwise, call RasGetEntryDialParams() before
> calling RasDial().
>
>
> Gambit
Thanks Gambit
I wrote this lines to catch them but I dont know how could I use RasDial()
Will you please tell me?
//=============================
RASENTRYNAME entries[256];
entries[0].dwSize = sizeof(RASENTRYNAME);
DWORD size = sizeof(entries),numEntries = 10;
BOOL passwordreturned=TRUE;
RasEnumEntries(NULL, NULL, entries, &size, &numEntries);
RASDIALPARAMS params = {sizeof(RASDIALPARAMS), 0};
strncpy(params.szEntryName,
entries[0].szEntryName,
RAS_MaxEntryName);
RasGetEntryDialParams(NULL, ¶ms, &passwordreturned);
RasDial(
// UseName: AnsiString(params.szUserName)
// Password: AnsiString(params.szPassword)
// Phone#: AnsiString(params.szPhoneNumber)
Technical Details
Message-ID:
<41c213ea@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41c04357@newsgroups.borland.com> <41c07ea9$1@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: "Pedram" <Pedram@Internet.Network> Newsgroups: borland.public.cppbuilder.nativeapi References: <41c04357@newsgroups.borland.com> <41c07ea9$1@newsgroups.borland.com> Subject: Re: RAS Problem Persisting Date: Thu, 16 Dec 2004 13:12:40 +0330 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 80.191.122.133 Message-ID: <41c213ea@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103238122 80.191.122.133 (16 Dec 2004 15:02:02 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail