Important: The information in this document is obsolete and should not be used for new development.
PBDTAddAPPL
To add an application to the desktop database, use thePBDTAddAPPL
function.
FUNCTION PBDTAddAPPL (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 the application's name. --> ioDTRefNum Integer The desktop database reference number. --> ioTagInfo LongInt Reserved; must be set to 0. --> ioDirID LongInt The application's parent directory. --> ioFileCreator OSType The application's signature. DESCRIPTION
ThePBDTAddAPPL
function adds an entry in the desktop database specified inioDTRefNum
for an application with the specified signature. You pass the application's signature inioFileCreator
, a pointer to the application's filename inioNamePtr
, and the application's parent directory ID inioDirID
. InitializeioTagInfo
to 0.RESULT CODES