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 / Low-Level Interface: Controlling the Session


DBEnd

You must call the DBEnd function to terminate a session.

FUNCTION DBEnd (sessID: LongInt; 
                asyncPB: DBAsyncParmBlkPtr): OSErr;
sessID
The session ID that was returned by the DBInit function.
asyncPB
A pointer to an asynchronous parameter block. If you do not want to call the function asynchronously, set this parameter to NIL.
DESCRIPTION
The DBEnd function terminates a session with a data server and terminates the network connection between the application and the host computer.

SPECIAL CONSIDERATIONS
The DBEnd 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 DBEnd function are
Trap macroSelector
_DBEnd$0403

RESULT CODES
noErr0No error
rcDBError-802Error ending session
rcDBBadSessID-806Session ID is invalid
rcDBAsyncNotSupp-809The database extension does not support asynchronous calls
rcDBPackNotInited-813The InitDBPack function has not yet been called
SEE ALSO
For a description of the asynchronous parameter block, see page 12-56.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996