🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Locking drives for exclusive access under Win32

#15377
From: Remy Lebeau (TeamB)
Date: Tue, 08 Jul 2003 16:12
25 lines
1925 bytes
"Andrue Cope" <not.a.valid@email.address.sorry> wrote in message
news:VA.00001dd5.06dcc046@email.address.sorry...
> We need to be able to lock a physical drive while we
> write an image to it. 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.

Look at DeviceIoControl() and various Int 21h commands such as the
following:

    Int 21h Function 440Dh Minor Code 4Ah
    http://msdn.microsoft.com/library/en-us/win9x/fat32_7q9c.asp

    Int 21h Function 440Dh Minor Code 4Bh
    http://msdn.microsoft.com/library/en-us/win9x/fat32_7tf4.asp

    Int 21h Function 440Dh Minor Code 6Ah
    http://msdn.microsoft.com/library/en-us/win9x/fat32_2n8w.asp

    Int 21h Function 440Dh Minor Code 6Bh
    http://msdn.microsoft.com/library/en-us/win9x/fat32_2qeo.asp


Gambit
Technical Details
Message-ID: <3f0aec5a$1@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!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!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 09:12:02 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <VA.00001dd5.06dcc046@email.address.sorry>
Subject: Re: Locking drives for exclusive access under Win32
Date: Tue, 8 Jul 2003 09:12:43 -0700
Lines: 27
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: <3f0aec5a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1057680474 207.175.226.26 (8 Jul 2003 09:07:54 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail