🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9341

Re: Ras again

#9341
From: Babak
Date: Sat, 17 Jul 2004 05:16
29 lines
1931 bytes
  RASENTRYNAME entries[256];
  entries[0].dwSize = sizeof(RASENTRYNAME);
  DWORD numEntries = 10;
  DWORD size = sizeof(entries);
// My problem is error 623 , its about it cant find the PhoneBook address
:-\
// it realy phone book? how can I get it if possible?
  DWORD res = RasEnumEntries(NULL, NULL, entries, &size, &numEntries);
  RASDIALPARAMS params = {sizeof(RASDIALPARAMS), 0};
  BOOL bPassword = TRUE;//FALSE;?
//  strcpy(params.szEntryName,"");
  params.szEntryName[0] = '\0'; //<--- as you said I initialized
  DWORD errco=RasGetEntryDialParams("", &params, &bPassword);
  if( errco == 0 ){//on success
     ShowMessage("Done !");
     Memo1->Lines->Add(params.szEntryName);
     Memo1->Lines->Add(params.szUserName);
     Memo1->Lines->Add(params.szPassword);
     Memo1->Lines->Add(params.szPhoneNumber);
     Memo1->Lines->Add(params.szCallbackNumber);
     Memo1->Lines->Add(params.szDomain);
  }
  else{
     ShowMessage("Error Code:"+IntToStr(errco));
  }

Still Persist , what should I do?
Dear Friend ! How should I correct (change) to code?
thx
Technical Details
Message-ID: <40f8b684@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40f805ab@newsgroups.borland.com> <40f81aba$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,6d4b466cdd4c8652
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Babak" <babak_info@hot.pop>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40f805ab@newsgroups.borland.com> <40f81aba$1@newsgroups.borland.com>
Subject: Re: Ras again
Date: Sat, 17 Jul 2004 09:46:41 +0430
Lines: 31
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: <40f8b684@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1090041476 62.60.157.36 (16 Jul 2004 22:17:56 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail