Article View: borland.public.cppbuilder.nativeapi
Article #7915RAS Problem Persisting
From: Pedram
Date: Tue, 14 Dec 2004 17:51
Date: Tue, 14 Dec 2004 17:51
28 lines
1664 bytes
1664 bytes
Hi
I'm still wonder how can I write a code to retrive UserName/Password and
Tel# in WinXP RAS informations.
There is a code like below but I think its not suitable n:
int Dial(LPTSTR Connection, LPTSTR UserName, LPTSTR Password)
{
RASDIALPARAMS rdp;
HRASCONN hwnd;
int rtn =0;
//Initializes the structure
memset (&rdp, 0, sizeof(RASDIALPARAMS));
rdp.dwSize = sizeof(RASDIALPARAMS);
strcpy(rdp.szEntryName, Connection);
strcpy(rdp.szPhoneNumber, "");
strcpy(rdp.szCallbackNumber, "");
strcpy(rdp.szUserName, UserName);
strcpy(rdp.szPassword, Password);
strcpy(rdp.szDomain, "");
hwnd = NULL;
rtn = RasDial(NULL, NULL, &rdp, 0xFFFFFFFF, NULL, &hwnd);
return rtn;
}
MAINLY , I want to get USERNAME / PASSWORD AND TELEPHONE NUMBER TO DIAL
of my internet account connections.
Thanks :-)
Technical Details
Message-ID:
<41c04357@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,aa1ee9ae2d3a35cd,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Pedram" <Pedram@Internet.Network> Newsgroups: borland.public.cppbuilder.nativeapi Subject: RAS Problem Persisting Date: Tue, 14 Dec 2004 21:21:50 +0330 Lines: 30 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: 217.219.250.160 Message-ID: <41c04357@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1103119191 217.219.250.160 (15 Dec 2004 05:59:51 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail