Newsgroups: comp.lang.pascal
Path: utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch
From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch)
Subject: Re: Int 25h
Message-ID: <1991Feb12.142054.29329@maytag.waterloo.edu>
Sender: daemon@maytag.waterloo.edu (Admin)
Organization: University of Waterloo
References: <5eg5w1w163w@infopls.chi.il.us>
Date: Tue, 12 Feb 1991 14:20:54 GMT
Lines: 20

In article <5eg5w1w163w@infopls.chi.il.us> andyross@infopls.chi.il.us (Andrew Rossmann) writes:
>
>  Some of the Int 25h routines posted here will fail miserably under DOS
>3.31 and 4.0 if large partitions are present. The following code is from my
>Infoplus program. It's sort of limited, but is at least a good starting
>point.

Zenith 3.30 Plus (which reports itself as version 3.30) also supports the large
partitions, so your code will fail on machines using it.  A more reliable
(but slower) test is to use DOS function 36h, Get Disk Information, to find
the number of clusters and the sectors/cluster.  Multiply these and if you
have more than 64K of sectors, you need the large disk calls.  (This is from
Object Professional's detection method.  They started out with the version test
that you use, until I pointed out the problem.  I highly recommend 
Object Professional from Turbopower software.)

Duncan Murdoch
dmurdoch@watstat.waterloo.edu


