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 / Deleting Entries From the Desktop Database


PBDTRemoveComment

To remove a user comment from the desktop database, call the PBDTRemoveComment function.

FUNCTION PBDTRemoveComment (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.
\xAE ioResultOSErrThe result code of the function.
--> ioNamePtrStringPtrA pointer to the filename or directory name.
-->ioDTRefNumIntegerThe desktop database reference number.
--> ioDirIDLongIntThe parent directory of the file or directory.

DESCRIPTION
The PBDTRemoveComment function removes the comment associated with a file or directory from the database specified in ioDTRefNum. You specify the file or directory name through ioNamePtr and the parent directory ID in ioDirID. You cannot remove a comment if the file or directory is not present on the volume. If no comment was stored for the file, PBDTRemoveComment returns an error.

RESULT CODES
noErr0No error
ioErr-36I/O error
fnfErr-43File or directory doesn't exist
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
afpItemNotFound-5012Comment not found

Previous Book Contents Book Index Next

© Apple Computer, Inc.
6 JUL 1996