CloseSession
ASPCloseSession Close a workstation/server session
#include <AppleTalk.h> AppleTalk Manager
OSErr ASPCloseSession( xParamBlock, async);
XPPParmBlkPtr xParamBlock; pointer to an AppleTalk parameter block
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
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:
Out-InName Type Size Offset Description
¨ 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.
Returns: an operating system Error Code. It will be one of:
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).