CloseSession
ASPCloseSession Close a workstation/server session
OSErr ASPCloseSession( xParamBlock, async); XPPParmBlkPtr xParamBlock; pointer to an AppleTalk parameter block Boolean async; 0=await completion; 1=immediate return ASPCloseSession closes a session between a workstation and a server.
xParamBlock is a pointer to a parameter block structure. The relevant fields are
as follows:
¨ csCode short 2 26 AlwaysASPCloseSession
¨ sessRefnum short 2 28 Session reference number
async is a Boolean value. Use FALSE for normal ( synchronous) operation or TRUE to enqueue the request and resume control immediately. See Async I/O.
aspParamErr (-1070) Server returned bad (positive) error code
aspSessClosed (-1072) Session already in process of closing
Notes: This call aborts any calls that are active on the session, closes the session,
and calls the attention routine, if any, with an attention code of zero (zero is
invalid as a real attention code).