Article View: borland.public.cppbuilder.nativeapi
Article #13493Re: internet disconnecting
From: Martin C
Date: Sat, 11 Oct 2003 00:16
Date: Sat, 11 Oct 2003 00:16
36 lines
1535 bytes
1535 bytes
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:
<3f874bfa@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>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-10 17:39:08 PST From: "Martin C" <martinc@aol.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f8277f3@newsgroups.borland.com> Subject: Re: internet disconnecting Date: Fri, 10 Oct 2003 16:16:59 -0800 Lines: 38 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: <3f874bfa@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1065831418 81.10.4.238 (10 Oct 2003 17:16:58 -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