Important: The information in this document is obsolete and should not be used for new development.
InitDBPack
Use theInitDBPackfunction to initialize the Data Access Manager.
FUNCTION InitDBPack: OSErr;DESCRIPTION
TheInitDBPackfunction initializes the Data Access Manager. You must call theInitDBPackfunction before you call any other Data Access Manager routines. If the Data Access Manager has already been initialized, theInitDBPackfunction returns thenoErrresult code but does nothing else.The interface routine that implements the
InitDBPackfunction includes a version number for the Data Access Manager. If the Data Access Manager is a different version from that specified by the interface routine, then theInitDBPackfunction returns thercDBWrongVersionresult code.SPECIAL CONSIDERATIONS
TheInitDBPackfunction may move or purge memory. You should not call this routine from within an interrupt, such as in a completion routine or a VBL task.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theInitDBPackfunction are
Trap macro Selector _InitDBPack$0100RESULT CODES
noErr 0 No error rcDBWrongVersion -812 Wrong version number