Article View: borland.public.cppbuilder.nativeapi
Article #7600Ras Problem
From: Ali
Date: Fri, 14 Jan 2005 09:50
Date: Fri, 14 Jan 2005 09:50
35 lines
1702 bytes
1702 bytes
#include "winsock.h"
#include "ras.h"
#include "wininet.h"
{
RASENTRYNAME entries[256];
entries[0].dwSize = sizeof(RASENTRYNAME);
int rv;
char *lip;
DWORD size = sizeof(entries);
DWORD i,res,numEntries = 10;
BOOL passwordreturned;
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 ){
ShowMessage(AnsiString(params.szPhoneNumber,));
}
}
}
Hi;
but I cant access (see) the Dial number !!
what happen?
how could I fix it?
thx .
--------------------------------
<ali>
ali_info@hotpop.com
Technical Details
Message-ID:
<41e7968f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,38f1da7e16dcf449,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Ali" <ali_info@hotpop.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Ras Problem Date: Fri, 14 Jan 2005 13:20:12 +0330 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.165.107.128 Message-ID: <41e7968f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105696399 213.165.107.128 (14 Jan 2005 01:53:19 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.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