🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Dectection of HPFS File system?

#1664
From: Dan SPALDING
Date: Tue, 20 Nov 1990 21:46
25 lines
1609 bytes
In article <1990Nov15.174907.19980@mks.com> dale@mks.com (Dale Gass) writes:
>I require a portable and efficient method of determining whether a given
>drive uses the HPFS file system.
>
>
>What I require, is a portable way (i.e.  works on OS/2 1.1, 1.2) to
>determine whether a drive is a HPFS file system, without using calls
>that are unsupported in version 1.1.
>
something you can do is put the call to DosQFSAttach in a segment that is
marked as "LOADONCALL" in the .def file.  then, you only call your IsHpfs()
call when you have already checked the os/2 version number.  In that way, you
avoid the fault on the load of the program because it won't load and fixup the
code segment with the unsupported API call (for v1.1).  When you do call it,
os/2 will load the segment and perform the fixups then instead of at program
startup time with a "PRELOAD" (the default) segment attribute.

Hope this helps.


-- 
------------------------------------------------------------------------
dan spalding -- microsoft systems/languages -- microsoft!dans
"there has not been a word invented that would convey my indifference to
that remark." - paraphrase from hawkeye pierce
Technical Details
Message-ID: <59224@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!microsoft!dans
References: <1990Nov15.174907.19980@mks.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!hybrid!scifi!bywater!uunet!microsoft!dans
From: dans@microsoft.UUCP (Dan SPALDING)
Newsgroups: comp.os.os2.programmer
Subject: Re: Dectection of HPFS File system?
Message-ID: <59224@microsoft.UUCP>
Date: 20 Nov 90 21:46:31 GMT
References: <1990Nov15.174907.19980@mks.com>
Reply-To: dans@microsoft.UUCP (Dan SPALDING)
Organization: Microsoft Corp., Redmond WA
Lines: 25