Important: The information in this document is obsolete and should not be used for new development.
PBDTGetComment
To retrieve the user comments for a file or directory, use thePBDTGetCommentfunction.
FUNCTION PBDTGetComment (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.
--> ioCompletion ProcPtr A pointer to a completion routine. \xAE ioResult OSErr The result code of the function. --> ioNamePtr StringPtr A pointer to a file or directory name. --> ioDTRefNum Integer The desktop database reference number. --> ioDTBuffer Ptr A pointer to comment text (200 bytes). \xAE ioDTActCount LongInt The comment size. --> ioDirID LongInt The parent directory of the file or directory. DESCRIPTION
ThePBDTGetCommentfunction retrieves the comment stored for a file or directory in the database specified inioDTRefNum. You specify the filename or directory name and its parent directory ID throughioNamePtrandioDirID. You allocate a buffer big enough to hold the largest comment, 200 bytes, and put a pointer to it in theioDTBufferfield. ThePBDTGetCommentfunction places the comment in the buffer as a plain text string and places the length of the comment inioDTActCount.RESULT CODES