Article View: borland.public.cppbuilder.nativeapi
Article #6075Re: Issuing a RAS Hangup
From: Bob Gonder
Date: Tue, 14 Jun 2005 08:19
Date: Tue, 14 Jun 2005 08:19
21 lines
1940 bytes
1940 bytes
Terry wrote: >If that is true, then why sometimes does RasHangup() not work and yet if >I go and use the Ras Dialog it always works? First instinct when that happens to me, is there is something wrong with my code. You haven't shown your code, so we have no real way of knowing if it is right or not. One thing that jumps out at me from this example http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rasenumconnections.asp is the line while (dwRetries--) Which seems to indicate that RasEnumConnections is problematic. Also, you didn't mention if or what the error code was from RasHangup. Also, there are a few notes about things that can go wrong here http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rras/rras/rashangup.asp
Technical Details
Message-ID:
<l84ta1h2hv51ec5khphsoki8njg5avpgof@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42adf943$1@newsgroups.borland.com> <42ae03d6$3@newsgroups.borland.com> <42ae0c58$1@newsgroups.borland.com> <42ae1245$1@newsgroups.borland.com> <42ae59c7$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a16bb7c17776df41 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Issuing a RAS Hangup Date: Tue, 14 Jun 2005 01:19:52 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <l84ta1h2hv51ec5khphsoki8njg5avpgof@4ax.com> References: <42adf943$1@newsgroups.borland.com> <42ae03d6$3@newsgroups.borland.com> <42ae0c58$1@newsgroups.borland.com> <42ae1245$1@newsgroups.borland.com> <42ae59c7$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.155.34 X-Trace: newsgroups.borland.com 1118737191 67.77.155.34 (14 Jun 2005 01:19:51 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail