VolumeType
ParamBlockRec union of IO, file, volume, control, slotDev and multiDev Parameter blocks
variants
IOParam Parameter block use in I/O calls VCB Volume Control Block (use only on flat volumes) FInfo Finder information structure HFS (Hierarchical File System) additions and variations
WDPBRec Working Directory block used in calls to PBOpenWD, et.al FSSpec File system specification record typedef unsigned char CInfoType;
fOnDesk 1
fHasBundle 8192 values found in FInfo.fdFlags fInvisible 16384
fTrash (-3) values found in FInfo.fdFldr fDeskTop (-2)
fDisk 0
fsAtMark 0 I/O positioning mode values used in SetFPos fsFromStart 1
fsFromLEOF 2
fsFromMark 3
rdVerify 64 add to above positioning mode to force
verify-after- write
ioDirFlg 3 use to test ioFlAttrib field of CInfoPBRec for directory or file using BitTst function ioDirMsk 0x10
fstRtParID 1
fstRtDirID 2 always ioDirID of root directory
File permission codes used in in ioParam.ioPermssn, eg, in calls to
fsCurPerm 0 exclusive read/write permission if it is
available; otherwise, exclusive read, if that is
available
fsRdPerm 1 exclusive read permission
fsWrPerm 2 exclusive write permission
fsRdWrPerm 3 exclusive read/write permission
fsRdWrShPerm 4 shared read/write permission
gestaltFSAttr 'fs ' file system attributes selector
gestaltFullExtFSDispatching 0 exports HFSDispatch traps
gestaltHasFSSpecCall 1 supports FSSpec records fsSBPartialName 1 substring of name
fsSBFullName 2 full name
fsSBFlAttrib 4 directory flag software lock flag
fsSBNegate 16384 reverse match status
For files only
fsSBFlFndrInfo 8 Finder file info
fsSBFlLgLen 32 data fork logical length
fsSBFlPyLen 64 data fork physical length
fsSBFlRLgLen 128 resource fork logical length
fsSBFlRPyLen 256 resource fork physical length
fsSBFlCrDat 512 file creation date
fsSBFlMdDat 1024 file modification date
fsSBFlBkDat 2048 file backup date
fsSBFlXFndrInfo 4096 more Finder file info
fsSBFlParID 8192 file's parent ID
For directories only
fsSBDrUsrWds 8 Finder directory info
fsSBDrNmFls 16 number of files in directory
fsSBDrCrDat 512 directory creation date
fsSBDrMdDat 1024 directory modification date
fsSBDrBkDat 2048 directory backup date
fsSBDrFndrInfo 4096 more Finder directory info
fsSBDrParID 8192 directory's parent ID
Value of vMForeignPrivID in file attributes buffer
fsUnixPriv 1 A/UX privilege model
vMAttrib bit position constants
bLimitFCBs 31 limit file control blocks
bLocalWList 30 use shared volume handle for
window list
bNoMiniFndr 29 disable Mini Finder menu item
bNoVNEdit 28 lock volume name
bNoLclSync 27 do not let Finder change
modification date
bTrshOffLine 26 zoom volume when it is unmounted
bNoSwitchTo 25 do not switch launch to applications
bNoDeskItems 20 do not place objects on the
Finder desktop
bNoBootBlks 19 not a startup volume
bAccessCntl 18 volume supports AFP access control
bNoSysDir 17 no system directory
bHasExtFSVol 16 external file system volume
bHasOpenDeny 15 volume support shared access modes
bHasCopyFile 14 volume supports _CopyFile
bHasMoveRename 13 volume supports _MoveRename
bHasShortName 11 volume supports shorter name
bHasFolderLock 10 folder is locked
bHasPersonalAccessPrivileges
9 local file sharing is enabled
bHasUserGroupList 8 volume supports AFP privileges
bHasFileIDs 6 volume supports fileID functions
bHasBtreeMgr 5 reserved
bHasBlankAccessPrivileges
4 volume supports inherited access privileges for
folders
Version Release Stage Codes
developStage 0x20
alphaStage 0x40
betaStage 0x60
finalStage 0x80
Media type in remote mounting information
AppleShareMediaType 'afpm' an AppleShare volume
User authentication methods in AFP remote mounting information
kNoUserAuthentication 1 guest status; no password needed
kPassword 2 8-byte password
kEncryptPassword 3 encrypted 8-byte password
kTwoWayEncryptPassword 6 two-way random encryption; authenticate both
user and server
Values for CInfoType
hFileInfo 0
dirInfo 1
Do not use low memory global variables that are not documented.
No undocumented location below the system heap is guaranteed to be available
for use in future systems.
Name Address Size Description
BootDrive 0x0210 2 volume ID of boot drive
BufTgDate 0x0304 4 File tags buffer: date and time of last modification
BufTgFBkNum 0x0302 2 File tags buffer: logical block number
BufTgFFlg 0x0300 2 File tags buffer: flags (bit 1 = 1 if resource fork)
BufTgFNum 0x02FC 4 File tags buffer: file number
DefVCBPtr 0x0352 4 VCB * addr of default VCB DrvQHdr 0x0308 10 QHdr Drive queue header EjectNotify 0x0338 4 ProcPtr gets called on disk eject FCBSPtr 0x034E 4 Ptr addr of FCB buffer FmtDefaults 0x039E 4 HFSDefaults info used by Disk Init Pkg FSFCBLen 0x03F6 2 length of an FCB
FSQHdr 0x0360 10 QHdr file I/O queue header VCBQHdr 0x0356 4 QHdr volume queue header ToExtFS 0x03F2 4 external file system address