[futurebasic] Re: [FB] HFS+

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2001 : Group Archive : Group : All Groups

From: Robert Purves <robert.purves@...>
Date: Sun, 23 Dec 2001 09:35:09 +1300
>I've discovered an .INCL called HFS+ in the Release 5 Files/Volumes
>examples, and want to know how to determine if I'm checking a HFS+ volume.
>
>Does anyone have code for checking if a volume is HFS or HFS+


The same code as "HFS+.Incl" seems to be in the Header file "Subs BigVolumes.Incl". That name is more accurate, because you don't actually need HFS+ to use the routines.


'-----------------------------------------
_gestaltFSAttr                = _"fs  "
_gestaltFSSupportsHFSPlusVols = 9
local fn HFSPlus
dim @ gestaltResponse as long
dim haveHFSPlus       as boolean
haveHFSPlus = _false
long if ( fn Gestalt( _gestaltFSAttr, gestaltResponse ) == _noErr )
if ( gestaltResponse and (1 << _gestaltFSSupportsHFSPlusVols) ) then haveHFSPlus = _zTrue
end if
end fn = haveHFSPlus
'-----------------------------------------


Robert P.