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


PBDTFlush

To save your changes to the desktop database, use the PBDTFlush function.

FUNCTION PBDTFlush (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.
--> ioDTRefNumIntegerThe desktop database reference number.

DESCRIPTION
The PBDTFlush function writes the contents of the desktop database specified in ioDTRefNum to the volume.

Note
If your application has manipulated information in the database using any of the routines described in "Adding to the Desktop Database" or "Deleting Entries From the Desktop Database" beginning on page 9-17 and page 9-20, respectively, you must call PBDTFlush to update the copy stored on the volume.
RESULT CODES
noErr0No error
ioErr-36I/O error
wPrErr-44Volume is locked through hardware
vLckdErr-46Volume is locked through software
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