🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

I need hel with ras

#7037
From: Antonio Eligio Perez Moron
Date: Tue, 15 Mar 2005 08:20
30 lines
1756 bytes
the following entrys dont work  , i can not read or write its values ,

    TheRasEntry.dwRedialCount
    TheRasEntry.dwRedialPause

this is my code




    DWORD a =  0;
    DWORD b =  0;

    int j = RasGetEntryProperties(NULL,NULL,0,&a,0,0);
    int k = RasGetEntryProperties(NULL,NombreConexion.c_str(),0,&b,0,0);
    TheRasEntry.dwSize = a;
    int n =
RasGetEntryProperties(NULL,NombreConexion.c_str(),&TheRasEntry,&b,0,0);
//    if (n!=0)  loggerGsm("Error Leyendo Properties de Conexion GSM  ");

      TheRasEntry.dwRedialCount = 8;
      TheRasEntry.dwRedialPause = 15;


    DWORD fRet;
    DWORD g = sizeof(TheRasEntry);
    fRet = RasSetEntryProperties(NULL,NombreConexion.c_str() ,&TheRasEntry,
g, NULL, 0);
    if (fRet != 0)
        throw Exception("Error :: RasSetEntryProperties");
Technical Details
Message-ID: <42369abe$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5340c09faed038e8,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Antonio Eligio Perez Moron" <eperez@acisa.es>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: I need hel with ras
Date: Tue, 15 Mar 2005 09:20:16 +0100
Lines: 34
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.227.43.227
Message-ID: <42369abe$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110874814 213.227.43.227 (15 Mar 2005 00:20:14 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail