Article View: borland.public.cppbuilder.nativeapi
Article #3460Disconnect Mapped Drive
From: Jeff
Date: Mon, 12 Jun 2006 22:32
Date: Mon, 12 Jun 2006 22:32
8 lines
1078 bytes
1078 bytes
I'm trying to disconnect a mapped network drive using the code below. It
returns 0 (NO_ERROR), but the drive is still mapped?
intReturn = WNetCancelConnection2("G:", 0, true);
Any thoughts?
Jeff
Technical Details
Message-ID:
<448deb77$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7da1bc1485c334c2,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Jeff" <Jeff@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Disconnect Mapped Drive Date: Mon, 12 Jun 2006 16:32:25 -0600 Lines: 10 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 198.68.195.231 Message-ID: <448deb77$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1150151543 198.68.195.231 (12 Jun 2006 15:32:23 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail