🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #15386

Re: Locking drives for exclusive access under Win32

#15386
From: Bob Gonder
Date: Tue, 08 Jul 2003 18:27
16 lines
1645 bytes
Andrue Cope <not.a.valid@email.address.sorry> wrote:

>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?

> I can't find anything in the help so far other than for Win9x 
>and was wondering if anyone here knew how to lock a physical drive 
>under Win32.

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?

If this isn't a performance thingy, there are other ways to block
access to the partial file until the write is completed.
Technical Details
Message-ID: <703mgv05bvgouee0ndud8hqef6ptavfo74@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <VA.00001dd5.06dcc046@email.address.sorry>

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 11:40:29 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Locking drives for exclusive access under Win32
Date: Tue, 08 Jul 2003 11:27:27 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <703mgv05bvgouee0ndud8hqef6ptavfo74@4ax.com>
References: <VA.00001dd5.06dcc046@email.address.sorry>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.235
X-Trace: newsgroups.borland.com 1057688823 67.31.165.235 (8 Jul 2003 11:27:03 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail