Article View: borland.public.cppbuilder.nativeapi
Article #15302Re: Locking drives for exclusive access under Win32
From: Russell Hind
Date: Wed, 09 Jul 2003 06:51
Date: Wed, 09 Jul 2003 06:51
14 lines
1842 bytes
1842 bytes
Remy Lebeau (TeamB) wrote: > > However, such commands only work under NT/2K/XP since they require a handle > to the volume directly, which is not supported under win9x/Me. So, worse > case scenerio, you'll probably have to do an OS version detection first, and > then use FSCTL_LOCK_VOLUME for NT/2K/XP and Int 21h for Win9x/Me. > A pain. The sooner people stop using the old 9x line of OSes, the better (still thats just my opinion because I develop under 2000/XP. Also, we ship the PCs that run our instruments, so our software only has to work under which OSes we want so we've got it easy!!) Cheers
Technical Details
Message-ID:
<3f0bbb71$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<VA.00001dd5.06dcc046@email.address.sorry> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,469af434a4899493 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-08 23:56:04 PST Date: Wed, 09 Jul 2003 07:51:11 +0100 From: Russell Hind <rhind@mac.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Locking drives for exclusive access under Win32 References: <VA.00001dd5.06dcc046@email.address.sorry> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com> In-Reply-To: <3f0b0fce$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 212.240.15.125 Message-ID: <3f0bbb71$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057733489 212.240.15.125 (8 Jul 2003 23:51:29 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail