🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Locking drives for exclusive access under Win32

#15338
From: Pete Fraser
Date: Thu, 10 Jul 2003 07:55
29 lines
2297 bytes
Remy, Andrue is after a WinNt/2k/XP solution and your link includes win9x in
the path :(
Rgds Pete

"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3f0cb75a$1@newsgroups.borland.com...

"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: <3f0d1c0b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!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> <3f0aec5a$1@newsgroups.borland.com> <3f0aed58$1@newsgroups.borland.com> <3f0b0fce$1@newsgroups.borland.com> <VA.00001dd9.001e2e76@email.address.sorry> <3f0cb75a$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-10 01:17:14 PST
From: "Pete Fraser" <pete.fraser@at.frasersoft.dot.net>
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> <3f0cb75a$1@newsgroups.borland.com>
Subject: Re: Locking drives for exclusive access under Win32
Date: Thu, 10 Jul 2003 08:55:55 +0100
Lines: 32
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.1165
NNTP-Posting-Host: 195.12.18.1
Message-ID: <3f0d1c0b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057823755 195.12.18.1 (10 Jul 2003 00:55:55 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail