Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!nadia!fealon From: fealon@nadia.stgt.sub.org (Frank Fuchs) Newsgroups: comp.os.os2.programmer Subject: Re: Dectection of HPFS File system? Keywords: Runtime DLL's Message-ID: <7LPL0BC@nadia.stgt.sub.org> Date: 26 Nov 90 22:17:36 GMT References: <1990Nov15.174907.19980@mks.com> Organization: Foxware, W-7030 Boeblingen, Germany Lines: 23 In article <1990Nov15.174907.19980@mks.com> dale@mks.com (Dale Gass) writes: > > [...] > >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. The solution to your problem is to use DosQFSAttach as a Run-Time API-Call. First you check your version number of OS/2 then you make calls to DosLoadModule (check your system DLL's for DosQFSAttach) and DosGetProcAddr. After this you can use DosQFSAttach. Be sure to free the Module with DosFreeModule. For further information about Runtime-DLL's consult your manuals (RTFM ;-) Bye, -- Fealon, a.k.a. Frank Fuchs (Foxware), fealon@nadia.stgt.sub.org