[futurebasic] Re: [FB] HFS+

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

From: Pete <furbies@...>
Date: Mon, 24 Dec 2001 10:56:38 +1100
Robert Purves on 23/12/01 7:35 AM  scrawled:

>> 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.
> 

Robert, does that  mean I can just use the routines in the HFS+.INCL
regardless of which system the code is running on ?
Or regardless of which HDs are HFS or HFS+

What's the minimum hardware/software to use the routines ?

-- 
Pete...                     (the other one)

> '-----------------------------------------
> _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.