TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Tosh Maddox
from: RICHARD BARTLET
date: 1995-12-17 15:25:08
subject: HPFS detect in Turbo Pascal?

-=> Quoting Tosh Maddox to All <=-

 TM> Does anyone have a snippet of code to detect a HPFS drive in OS/2
 TM> using  either Turbo Pascal, BPOS2v_2 (c't), or VP, could you please
 TM> post a small  sample?

On sector 0h of the disk (logical) at offset 36h, it will say either HPFS
or FAT16. There is some sub-function of int 21h under dos which will read
a sector for you, but I don't know how you'd go about this in VP or any other
native-OS/2 compiler

Richard
... "Facts are stubborn things" - T. Smollett
--- Blue Wave/OS2 v2.21 [NR]
* Origin: Juxtaposition BBS (1:167/133)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 808 809 934 955 712/407 515
SEEN-BY: 712/517 628 713/888 800/1 7877/2809
@PATH: 167/133 116 90 92 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

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™.