Article View: borland.public.cppbuilder.nativeapi
Article #6714Re: query drive letter to see if it is a mapped network drive
From: Peter Van Hove
Date: Sat, 16 Apr 2005 22:00
Date: Sat, 16 Apr 2005 22:00
17 lines
1966 bytes
1966 bytes
The reason for asking is because when I try to get a handle for each drive letter (via CreateFile()) and the drive letter is for a mapped drive and that drive got offline or so, then obtaining that handle takes "for ever". So if I could determine if the drive letter is for a mapped drive, without nasty time-outs, then that would be a way to work around the problem. ------------------------------------------------------- "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> wrote in message news:4261890e@newsgroups.borland.com... > Hi, > > Is it possible to query a drive letter to see if it is a mapped network > drive instead of a storage device in the system itself ? > If so, how ? > And also, will there not be annoying time-outs when this network drive > disconnects at some point and the query is run ? >
Technical Details
Message-ID:
<42618aea@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4261890e@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4d4eec3eb7175b0b X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> From: "Peter Van Hove" <Will_Bounce_So_Use_My_First_Name@Smart-Projects.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <4261890e@newsgroups.borland.com> Subject: Re: query drive letter to see if it is a mapped network drive Date: Sun, 17 Apr 2005 00:00:08 +0200 Lines: 19 Organization: Smart Projects X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 NNTP-Posting-Host: 213.224.243.240 Message-ID: <42618aea@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1113688810 213.224.243.240 (16 Apr 2005 15:00:10 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail