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: Interapplication Communication /
Chapter 12 - Data Access Manager / Data Access Manager Reference
Data Access Manager Routines / Initializing the Data Access Manager


InitDBPack

Use the InitDBPack function to initialize the Data Access Manager.

FUNCTION InitDBPack: OSErr;
DESCRIPTION
The InitDBPack function initializes the Data Access Manager. You must call the InitDBPack function before you call any other Data Access Manager routines. If the Data Access Manager has already been initialized, the InitDBPack function returns the noErr 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 the InitDBPack function returns the rcDBWrongVersion result code.

SPECIAL CONSIDERATIONS
The InitDBPack 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 the InitDBPack function are
Trap macroSelector
_InitDBPack$0100

RESULT CODES
noErr0No error
rcDBWrongVersion-812Wrong version number

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996