Article View: borland.public.cppbuilder.nativeapi
Article #15304Re: Locking drives for exclusive access under Win32
From: Andrue Cope
Date: Wed, 09 Jul 2003 08:18
Date: Wed, 09 Jul 2003 08:18
24 lines
1767 bytes
1767 bytes
Bob Gonder, > >We need to be able to lock a physical drive while we write an image > >to it. > > Why? Are you using direct disk i/o? > Yup. We already use SPTI to read from the disk but writing to it is a PITA under Win2K or higher because of the autodetection. They try and mount the volume as soon as they see a boot sector. > I would think if you can use direct disk i/o, you could also lock it. > IOW can you do direct i/o in Win32? > Not with create file. It specifically excludes locking of physical drives :( Luckily it's not a major issue yet - just a possible requirement but these things have a way of being promoted. -- Andrue Cope [Bicester, UK]
Technical Details
Message-ID:
<VA.00001dda.001e3006@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> <703mgv05bvgouee0ndud8hqef6ptavfo74@4ax.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.00001dda.001e3006@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> <703mgv05bvgouee0ndud8hqef6ptavfo74@4ax.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: 25 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