Important: The information in this document is obsolete and should not be used for new development.
InitDBPack
Use theInitDBPack
function to initialize the Data Access Manager.
FUNCTION InitDBPack: OSErr;DESCRIPTION
TheInitDBPack
function initializes the Data Access Manager. You must call theInitDBPack
function before you call any other Data Access Manager routines. If the Data Access Manager has already been initialized, theInitDBPack
function returns thenoErr
result code but does nothing else.The interface routine that implements the
InitDBPack
function 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 theInitDBPack
function returns thercDBWrongVersion
result code.SPECIAL CONSIDERATIONS
TheInitDBPack
function 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 theInitDBPack
function are
Trap macro Selector _InitDBPack
$0100
RESULT CODES
noErr 0 No error rcDBWrongVersion -812 Wrong version number