Article View: borland.public.cppbuilder.nativeapi
Article #14578WinInet autodial/hangup
From: nicolasr
Date: Thu, 07 Aug 2003 23:22
Date: Thu, 07 Aug 2003 23:22
42 lines
2427 bytes
2427 bytes
Hi, not sure if this is the most appropriate group, but... I am trying to figure out the best way to establish and hangup a unattended auto-dial internet-connection for timer-controlled automatic ftp acess. Problem : there may be multiple independent processes which connect and disconnect to/from the internet in the same way. So its necessary to prevent the internet connection from being closed by one program as long as others still need it. As I understand InternetAutoDialHangup would close the connection without waiting for other Processes so this doesn't seem to be the right way. Example : 1. Process A calls InternetAutodial, the connection is established 2. Process B calls InternetAutodial, the connection is already established, so B can use the connection. 3. Process A has done its online-work ans calls InernetAutodialHangup, the Sonnection is closed 4. Process B produces Errors because it still needs the connection Possible Solution (?): InternetDial seems to have autodial options and it returns a connection Number by which the specific Connection can be closed with InternetHangup. Is that what i'm looking for ? Will several processes that are using InternetDial with the same physical connection to dial in be able to "close" their "connection" by number without closing each others ? But if so - what about the Name of the connection ? InternetAutoDial uses the Default connection. How can I retrieve the name of this connection for use with InternetDial ? thanks, Nick
Technical Details
Message-ID:
<3f32df19$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,46e50953b90bc92c,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-07 16:31:19 PST From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: WinInet autodial/hangup Date: Fri, 8 Aug 2003 01:22:01 +0200 Lines: 44 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: 80.133.168.253 Message-ID: <3f32df19$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060298521 80.133.168.253 (7 Aug 2003 16:22:01 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail