Article View: borland.public.cppbuilder.nativeapi
Article #13421Re: internet disconnecting
From: Martin C
Date: Sun, 12 Oct 2003 02:13
Date: Sun, 12 Oct 2003 02:13
60 lines
2255 bytes
2255 bytes
Sorry for not mention the header code, anyway I can see that Remy gave it to
you...
BTW Remy is the one who initially gave it to me...
thanks
"Borut Sustar" <borut@bokosoft.si> wrote in message
news:3f87c55e@newsgroups.borland.com...
> Ihave problems with compiling this code. I got errors like"Undefined
symbol
> RASCONN;
> undefined symbol Ras....
>
> Do i have to include something?
>
> Borut
> "Martin C" <martinc@aol.com> wrote in message
> news:3f874bfa@newsgroups.borland.com...
> > Hi brout
> >
> > here is how I disconnect Dial-up connections:
> >
> >
> > RASCONN Ras[255];
> > unsigned long x=0;
> > unsigned long lg;
> > unsigned long lpcon;
> >
> > Ras[0].dwSize = 412;
> > lg = 256 * Ras[0].dwSize;
> > RasEnumConnections(&Ras[0], &lg, &lpcon);
> >
> > if (lpcon!=0){
> > while (x < lpcon) {
> > RasHangUp(Ras[x].hrasconn);
> > x++;
> > }
> > }
> >
> > Best Regards
> >
> > "Borut Sustar" <borut@bokosoft.si> wrote in message
> > news:3f8277f3@newsgroups.borland.com...
> > > Hello!
> > >
> > > How can i disconnect from internet (dial-up) when finishing transfer
> from
> > > FTP?
> > > I am using BCB 5.
> > >
> > > Thanx in advance
> > > Borut
> > > Slovenia
> > >
> > >
> >
> >
>
>
Technical Details
Message-ID:
<3f88b8cb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8277f3@newsgroups.borland.com> <3f874bfa@newsgroups.borland.com> <3f87c55e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,7304f86cf24c30a3 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-11 19:39:08 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8277f3@newsgroups.borland.com> <3f874bfa@newsgroups.borland.com> <3f87c55e@newsgroups.borland.com> Subject: Re: internet disconnecting Date: Sat, 11 Oct 2003 18:13:31 -0800 Lines: 62 Organization: V Safe X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 81.10.4.238 Message-ID: <3f88b8cb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065924811 81.10.4.238 (11 Oct 2003 19:13:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail