Article View: borland.public.cppbuilder.nativeapi
Article #14576Re: Unmount drive on Win9x (Int 21h API ???)
From: Remy Lebeau (TeamB)
Date: Thu, 07 Aug 2003 22:23
Date: Thu, 07 Aug 2003 22:23
31 lines
1932 bytes
1932 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
news:3f32b61b.5680168@forums.borland.com...
> I found a (broken) link to using some old Int 21h functions instead.
What was the link exactly?
> - how to access this Int 21h interface
Use DeviceIoControl() as well. The trick is, however, that you cannot open
the hardware device directly like you can under NT/2K/XP, so you have to
access it indirectly using the VWIN32.VXD driver under Win9x/Me instead:
Calling DeviceIoControl on Windows Me/98/95
http://msdn.microsoft.com/library/en-us/devio/base/calling_deviceiocontrol_o
n_windows_95_98_me.asp
> - (more specifically) on unmounting a device ?
Int 21h Function 440Dh Minor Code 49h
Ejects the specified media.
http://msdn.microsoft.com/library/en-us/win9x/fat32_7n3k.asp
You can find all of the Int21h controls here:
http://msdn.microsoft.com/library/en-us/win9x/fat32_70z4.asp
Gambit
Technical Details
Message-ID:
<3f32cfe9@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-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f32b61b.5680168@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8122e234edf6f96b X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-07 15:23:34 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f32b61b.5680168@forums.borland.com> Subject: Re: Unmount drive on Win9x (Int 21h API ???) Date: Thu, 7 Aug 2003 15:23:36 -0700 Lines: 33 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: <3f32cfe9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060294633 207.175.226.26 (7 Aug 2003 15:17:13 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail