Article View: borland.public.cppbuilder.nativeapi
Article #9098Phone Number
From: Babak
Date: Sun, 01 Aug 2004 13:12
Date: Sun, 01 Aug 2004 13:12
33 lines
2051 bytes
2051 bytes
This code below runs and work but Phone Number wouldn't show !!!
I check it many times in my win98 it is not showing the Server (The
computer should be dialed) Phone Number
Please please some one help...
-------
RASENTRYNAME entries[256];
entries[0].dwSize = sizeof(RASENTRYNAME);
int rv;
char *lip;
DWORD size = sizeof(entries);
DWORD i,res,numEntries = 10;
BOOL passwordreturned=FALSE;
//=============================
res = RasEnumEntries(NULL, NULL, entries, &size, &numEntries);
for(i=0 ; i<numEntries ; i++){
RASDIALPARAMS params = {sizeof(RASDIALPARAMS), 0};
strncpy(params.szEntryName,
entries[i].szEntryName,
RAS_MaxEntryName);
rv=RasGetEntryDialParams(NULL, ¶ms, &passwordreturned);
if( rv == 0 ){
Memo1->Lines->Add("Connection
Name:\t"+AnsiString(params.szEntryName));
Memo1->Lines->Add("UseName:\t"+AnsiString(params.szUserName));
Memo1->Lines->Add("Password:\t"+AnsiString(params.szPassword));
Memo1->Lines->Add("Phone #:\t"+AnsiString(params.szPhoneNumber));
Memo1->Lines->Add("User Home
#:\t"+AnsiString(params.szCallbackNumber));
Memo1->Lines->Add("NetDomain:\t"+AnsiString(params.szDomain));
Memo1->Lines->Add("-------------------------");
}
}
Technical Details
Message-ID:
<410ceaf3@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,d874239a1aa8f4c5,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Babak" <babak_info@hot.pop> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Phone Number Date: Sun, 1 Aug 2004 17:42:13 +0430 Lines: 36 X-Newsreader: Microsoft Outlook Express 4.72.3110.37 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.37 NNTP-Posting-Host: 62.60.157.36 Message-ID: <410ceaf3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1091365619 62.60.157.36 (1 Aug 2004 06:06:59 -0700) 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