Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: More Macintosh Toolbox /
Chapter 9 - Desktop Manager / Desktop Manager Reference
Routines / Manipulating the Desktop Database Itself


PBDTGetInfo

To determine the parent directory and the amount of space used by the desktop database on a particular volume, use the PBDTGetInfo function.

FUNCTION PBDTGetInfo (paramBlock: DTPBPtr; async: Boolean): OSErr;
paramBlock
A pointer to a desktop parameter block.
async
A Boolean value that specifies asynchronous (TRUE) or synchronous (FALSE) execution.
--> ioCompletionProcPtrA pointer to a completion routine.
\xAEioResultOSErrThe result code of the function.
\xAEioVRefNumIntegerThe volume reference number where the database files are actually stored.
-->ioDTRefNumIntegerThe desktop database reference number.
\xAE ioIndexIntegerThe number of files comprising the desktop database on the volume.
\xAE ioDirIDLongIntThe parent directory of the desktop database.
\xAE ioDTLgLenLongIntThe logical length of the database files.
\xAE ioDTPyLenLongIntThe physical length of the database files.

DESCRIPTION
The PBDTGetInfo function returns information about the desktop database. You specify the volume of the desktop database in ioDTRefNum. The parent directory of the desktop database for the volume is returned in ioDirID. The sum of the logical lengths of the files that constitute the desktop database for a given volume is returned in ioDTLgLen; the sum of the physical lengths of the files that constitute the desktop database for a given volume is returned in ioDTPyLen. The number of files comprising the desktop database is returned in ioIndex.

RESULT CODES
noErr0No err
nsvErr-35No such volume
ioErr-36I/O error
rfNumErr-51Reference number invalid
extFSErr-58External file system--file system identifier is nonzero

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996