PBCreateFileIDRefSync
Boolean async ; 0=await completion; 1=immediate return file.
pb is a pointer to a FIDParam structure.The relevant fields are as follows:
Æ ioCompletion ProcPtr 4 12 pointer to completion routine ¨ ioResult short 2 16 result code
Æ ioNamePtr long 4 18 pointer to first filename
Æ ioVRefNum short 2 22 volume specification (volume reference number,
working directory reference number, drive
number, or 0 for default volume)
۬ ioFileID long 4 54 file ID
async is a Boolean value. Use FALSE for normal (synchronous) operation or TRUE to enqueue the request and resume control immediately. See Async I/O.
noErr (0) No error
nsvErr (-35) Volume not found
ioErr (-36) I/O error
fnfErr (-43) File not found
wPrErr (-44) Hardware volume lock
vLckdErr (-46) Software volume lock
volOfflinErr (-53) Volume is off line
extFSErr (-58) External file system
wrgVolTypeErr (-123) Not an HFS volume
fidExists (-1301) File ID already exists
notAFileErr (-1302) Specified file is a directory
Notes: Given a volume reference number, filename, and parent directory ID,
the ioFileID field. If a file ID reference already exists for the file,