🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1651

Re: Dectection of HPFS File system?

#1651
From: lsalomo
Date: Sat, 17 Nov 1990 20:36
28 lines
1851 bytes
From article <15510005@hpspcoi.HP.COM>, by jfarley@hpspcoi.HP.COM (Jens Farley):
> dale@mks.com (Dale Gass) writes:
> 
>> I require a portable and efficient method of determining whether a given
>> drive uses the HPFS file system.
> 
> I needed to do the same thing a while back.  What I did is have my program
> look at the boot sector, which, in 1.2(1), contains a (text) field that
> describes the file system.  The field isn't there for 1.1, so if it's not
> there, you assume FAT.  (You can determine the offset of this field into
> the boot sector by looking at a boot sector in ASCII format, with DEBUG,
> SYMDEB, or Norton Utilities, for example.)  Your program can read the boot
> sector using the usual DosOpen, DosRead calls if you open the drive for
> direct access (by setting the DASD flag).

No no no no...If IBM (or Microsoft) even get around to porting OS/2 to other
architectures, then your idea will (more likely than not) not work anymore.
However, DosGetProcAddress looks up the API in the .DLL, which will be there
REGARDLESS of what architecture you are on.

Cheers,
Q - the "Q"uestor for knowledge (, a degree, etc.)

lsalomo@hubcap.clemson.edu
ibmman@clemson.clemson.edu
=============================================================================
"Gee Wally, I think there's something wrong with the Beaver."
=============================================================================
Technical Details
Message-ID: <11686@hubcap.clemson.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!ogicse!emory!hubcap!lsalomo
References: <15510005@hpspcoi.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!mintaka!ogicse!emory!hubcap!lsalomo
From: lsalomo@hubcap.clemson.edu (lsalomo)
Newsgroups: comp.os.os2.programmer
Subject: Re: Dectection of HPFS File system?
Message-ID: <11686@hubcap.clemson.edu>
Date: 17 Nov 90 20:36:29 GMT
References: <15510005@hpspcoi.HP.COM>
Organization: Clemson University, Clemson, SC
Lines: 28