🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Locking drives for exclusive access under Win32

#15331
From: Remy Lebeau (TeamB)
Date: Thu, 10 Jul 2003 00:49
23 lines
2109 bytes
"Andrue Cope" <not.a.valid@email.address.sorry> wrote in message
news:VA.00001dd9.001e2e76@email.address.sorry...

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

Have a look at the following article:

    About Exclusive Volume Locking
    http://msdn.microsoft.com/library/en-us/win9x/excluse_406f.asp

BTW, in my earlier reply, I listed a bunch of Int 21h functions for you.
Interrupt 21h Function 440Dh Minor Code 4Bh was for locking the entire hard
drive (a "physical volume").  Individual drive letters, aka partitions, are
"logical volumes" handled by Interrupt 21h Function 440Dh Minor Code 4Ah
instead.  Interrupt 13h is then used for the actual writing of the drive
data once you have obtained the appropriate locks.


Gambit
Technical Details
Message-ID: <3f0cb75a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-09!sn-xit-08!supernews.com!border3.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
References: <VA.00001dd5.06dcc046@email.address.sorry> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com> <VA.00001dd9.001e2e76@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-09 18:04:30 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <VA.00001dd5.06dcc046@email.address.sorry> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com> <VA.00001dd9.001e2e76@email.address.sorry>
Subject: Re: Locking drives for exclusive access under Win32
Date: Wed, 9 Jul 2003 17:49:41 -0700
Lines: 25
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 207.175.226.26
Message-ID: <3f0cb75a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057797978 207.175.226.26 (9 Jul 2003 17:46:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-05!sn-xit-09!sn-xit-08!supernews.com!border3.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