DBGetSessionNum
long sessID ; is the session ID you specify
short *sessNum ; is the requested session number
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block
you specify with the sessID parameter.
sessID is the session ID about which you want information
sessNum is the session number of the session you specified with the sessID
parameter. The session number is unique for a particular database
extension, but the same session number might be in use for different
database extensions at the same time.
asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL
noErr (0) No error
rcDBBadSessID -(806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called