Article View: comp.os.os2.programmer
Article #1643Dectection of HPFS File system?
From: Dale Gass
Date: Thu, 15 Nov 1990 17:49
Date: Thu, 15 Nov 1990 17:49
30 lines
1644 bytes
1644 bytes
I require a portable and efficient method of determining whether a given drive uses the HPFS file system. OS/2 1.2 provides such a call, DosQFSAttach, which returns the relevant information about a drive. However, this call is not supported under OS/2 1.1 (and I want the program to remain 1.1 compatible). Since HPFS was non-existent under OS/2 1.1, I can easily avoid making this DosQFSAttach call after checking the version number and finding it to be less than 1.2. However, since the DOS calls are dynamically linked, the mere external reference to DosQFAttach in the executable causes the program execution to fail at load time. 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. One potential solution would be to create a dynamically linked library (.DLL) to be included if the user is using OS/2 1.1. This DLL would contain a stub for DosQFSAttach which would always return values indicating FAT file systems. This is not the cleanest solution, as it requires an extra auxilliary support file. A less externally visible solution would be preferred. Any comments, suggestions, insights, would be greatly appreciated. -dale dale@mks.com uunet!watmath!mks!dale
Technical Details
Message-ID:
<1990Nov15.174907.19980@mks.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!daleShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!mks.com!dale From: dale@mks.com (Dale Gass) Subject: Dectection of HPFS File system? Organization: Mortice Kern Systems Inc., Waterloo, Ontario, CANADA Date: Thu, 15 Nov 90 17:49:07 GMT Message-ID: <1990Nov15.174907.19980@mks.com>