Article View: borland.public.cppbuilder.nativeapi
Article #7727Ras Ped
From: Grety
Date: Wed, 12 Jan 2005 02:05
Date: Wed, 12 Jan 2005 02:05
44 lines
2249 bytes
2249 bytes
Hi
I saw a code of Pedram about RasDial();
but in this code I cant see Tel#
try yourself and fix it if possible
I'll so thankful if give me your fixed source code.
Thanks aagian
bool TForm1::EnumEntries()
{
RASENTRYNAME *entry = new RASENTRYNAME[30];
DWORD entries, size, error;
char buffer[100];
RASDIALPARAMS params;
BOOL password;//=true;
entry[0].dwSize = sizeof(RASENTRYNAME);
size = 30 * sizeof(RASENTRYNAME);
error = RasEnumEntries(NULL, NULL, entry, &size,
&entries);
for(int x = 0; x < (int)entries; x++){
Memo1->Lines->Add(entry[x].szEntryName);
memset(¶ms, 0, sizeof(RASDIALPARAMS));
params.dwSize = sizeof(RASDIALPARAMS);
strcpy(params.szEntryName, entry[x].szEntryName);
error = RasGetEntryDialParams(NULL, ¶ms,
(LPBOOL)&password);
Memo1->Lines->Add(params.szUserName);
Memo1->Lines->Add(params.szPassword);
Memo1->Lines->Add(params.szCallbackNumber);
Memo1->Lines->Add(params.szPhoneNumber);
Memo1->Lines->Add(params.szDomain);
Memo1->Lines->Add("___________________");
//RasDial();
}
return true;
}
//--------------------------------------------------------------------------
-
void __fastcall TForm1::Button2Click(TObject *Sender)
{
EnumEntries();
}
//--------------------------------------------------------------------------
-
Technical Details
Message-ID:
<41e60144@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,84fc0c745e23e5ef,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Grety" <valid@emailaddress.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Ras Ped Date: Wed, 12 Jan 2005 05:35:41 +0330 Lines: 48 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 NNTP-Posting-Host: 213.165.107.128 Message-ID: <41e60144@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105592644 213.165.107.128 (12 Jan 2005 21:04:04 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail