Important: The information in this document is obsolete and should not be used for new development.
PBResolveFileIDRef
You can use thePBResolveFileIDReffunction to retrieve the filename and parent directory ID of the file with a specified file ID.
FUNCTION PBResolveFileIDRef (paramBlock: HParmBlkPtr; async: Boolean): OSErr;
- paramBlock
- A pointer to an
fidParamvariant of the HFS parameter block.async- A Boolean value that specifies asynchronous (
TRUE) or synchronous (FALSE) execution.
--> ioCompletionProcPtrA pointer to a completion routine. <-- ioResultOSErrThe result code of the function. <-> ioNamePtrStringPtrA pointer to a filename. --> ioVRefNumIntegerA volume specification. <-- ioSrcDirIDLongIntThe file's parent directory ID. --> ioFileIDLongIntA file ID. DESCRIPTION
ThePBResolveFileIDReffunction returns the filename and parent directory ID of the file referred to by file ID in theioFileIDfield. It places the filename in the string pointed to by theioNamePtrfield and the parent directory ID in theioSrcDirIDfield. If the name string isNIL,PBResolveFileIDRefreturns only the parent directory ID. If the name string is notNILbut is only a volume name,PBResolveFileIDRefignores the value in theioVRefNumfield, uses the volume name instead, and overwrites the name string with the filename. A return code offidNotFoundErrmeans that the specified file ID reference has become invalid, either because the file was deleted or because the file ID reference was destroyed byPBDeleteFileIDRef.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector forPBResolveFileIDRefare
Trap macro Selector _HFSDispatch $0016 RESULT CODES