Important: The information in this document is obsolete and should not be used for new development.
PBCreateFileIDRef
Use thePBCreateFileIDRef
function to establish a file ID reference for a file.
FUNCTION PBCreateFileIDRef (paramBlock: HParmBlkPtr; async: Boolean): OSErr;
- paramBlock
- A pointer to an
fidParam
variant of the HFS parameter block.async
- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletion
ProcPtr
A pointer to a completion routine. <-- ioResult
OSErr
The result code of the function. --> ioNamePtr
StringPtr
A pointer to a filename. --> ioVRefNum
Integer
A volume specification. --> ioSrcDirID
LongInt
The file's parent directory ID. <-- ioFileID
LongInt
A file ID. DESCRIPTION
Given a volume reference number, filename, and parent directory ID, thePBCreateFileIDRef
function creates a record to hold the name and parent directory ID of the specified file.PBCreateFileIDRef
places the file ID in theioFileID
field.
If a file ID reference already exists for the file,PBCreateFileIDRef
supplies the file
ID but returns the result codefidExists
.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBCreateFileIDRef
are
Trap macro Selector _HFSDispatch $0014 RESULT CODES