Important: The information in this document is obsolete and should not be used for new development.
PBDTGetPath
You can get the reference number of the desktop database using thePBDTGetPath
function.
FUNCTION PBDTGetPath (paramBlock: DTPBPtr): OSErr;
paramBlock
- A pointer to a desktop parameter block.
\xAE ioResult OSErr The result code of the function. --> ioNamePtr StringPtr A pointer to the volume name or full pathname of the desktop database. --> ioVRefNum Integer The volume reference number of the desktop database. \xAE ioDTRefNum Integer The desktop database reference number. DESCRIPTION
ThePBDTGetPath
function returns the desktop database reference number in theioDTRefNum
field, which represents the access path to the database. You specify the volume by passing a pointer to its name in theioNamePtr
field or a volume reference number in theioVRefNum
field. If the desktop database is not already open,PBDTGetPath
opens it and then returns the reference number. If the desktop database doesn't exist,PBDTGetPath
creates it. IfPBDTGetPath
fails, it sets theioDTRefNum
field to 0.
- Note
- You cannot use the desktop reference number as a file reference number in any File Manager routines.
- WARNING
- Do not call
PBDTGetPath
at interrupt time--it allocates memory in the system heap.RESULT CODES