Article View: borland.public.cppbuilder.nativeapi
Article #13509Re: internet disconnecting
From: Borut Sustar
Date: Sat, 11 Oct 2003 08:53
Date: Sat, 11 Oct 2003 08:53
48 lines
1920 bytes
1920 bytes
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:
<3f87c55e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f8277f3@newsgroups.borland.com> <3f874bfa@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 02:09:05 PST Reply-To: "Borut Sustar" <borut@bokosoft.si> From: "Borut Sustar" <borut@bokosoft.si> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8277f3@newsgroups.borland.com> <3f874bfa@newsgroups.borland.com> Subject: Re: internet disconnecting Date: Sat, 11 Oct 2003 10:53:39 +0200 Lines: 50 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: 193.77.157.52 Message-ID: <3f87c55e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065862494 193.77.157.52 (11 Oct 2003 01:54:54 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail