TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: JONATHAN DE BOYNE POLLARD
from: MIKE RUSKAI
date: 1999-10-21 11:25:00
subject: DosDevIOCtl()

Some senseless babbling from Jonathan De Boyne Pollard to Mike Ruskai
on 10-18-99  08:56 about DosDevIOCtl()...

 MR> The head/cylinder numbers are relative to the beginning of the 
 MR> logical drive.  Sort of.  

 JDBP> I *suspect*, from experience with the Graham Utilities DISKEDIT, that
 JDBP> you'll find that your hypothesis does not work for multiple primary
 JDBP> partitions (such as is the case if Boot Manager is installed at the
 JDBP> start of the disc, for example).

The category 8 functions are designed for logical disks, so outside of the
given logical drive, it shouldn't matter what's going on.  The handle used
is from DosOpen(), and is not a physical drive handle.

Nevertheless, I couldn't quite figure out why I wasn't getting the HPFS
SuperBlock with some drives.  I thought I nailed the problem by noting and
using the hidden sectors value from the BIOS parameter block, but someone
cured me of that pretty quickly.

So, I put the drive into sector mode (using what Vitus posted), which makes
things much simpler.

After poking around, I've run into a strange situation, which you can read
about in a post entitled "HPFS freespace bmp list".

Mike Ruskai
thannymeister@yahoo.com


... Cats are not pets; they own the house and let you live there.

___ Blue Wave/QWK v2.20
--- Platinum Xpress/Win/Wildcat5! v3.0pr2
* Origin: FIDO QWK MAIL & MORE! WWW.DOCSPLACE.ORG (1:3603/140)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.