Article View: borland.public.cppbuilder.nativeapi
Article #15305Re: Locking drives for exclusive access under Win32
From: Andrue Cope
Date: Wed, 09 Jul 2003 08:18
Date: Wed, 09 Jul 2003 08:18
18 lines
1819 bytes
1819 bytes
Remy Lebeau (TeamB), > http://msdn.microsoft.com/library/en-us/fileio/base/fsctl_unlock_volume.asp > > 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. > Worth a look - unfortunately it only says it locks volumes and our problem (should we choose to go this route) is that we want to lay an image down over the entire disk so we need to lock the disk itself. But thanks, anyway. -- Andrue Cope [Bicester, UK]
Technical Details
Message-ID:
<VA.00001dd9.001e2e76@email.address.sorry>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!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-09 01:41:15 PST Date: Wed, 09 Jul 2003 09:18:23 +0100 Newsgroups: borland.public.cppbuilder.nativeapi Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Virtual Access by Atlantic Coast PLC, http://www.atlantic-coast.com/va Message-ID: <VA.00001dd9.001e2e76@email.address.sorry> Subject: Re: Locking drives for exclusive access under Win32 From: Andrue Cope <not.a.valid@email.address.sorry> Reply-To: not.a.valid@email.address.sorry References: <VA.00001dd5.06dcc046@email.address.sorry> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com> NNTP-Posting-Host: 217.207.223.34 X-Trace: newsgroups.borland.com 1057738748 217.207.223.34 (9 Jul 2003 01:19:08 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail