ASPAbortOS
ASPAbortOS Abort a pending ASPOpenSession call
#include <AppleTalk.h> AppleTalk Manager
OSErr ASPAbortOS( xParamBlock, async);
XPPParmBlkPtr xParamBlock; pointer to an AppleTalk parameter block
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
ASPAbortOS aborts a pending ASPOpenSession call.
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 AlwaysASPAbortOS
¨ abortSCBPointer short 2 28 Pointer to session control block
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.
cbNotFound (-1102) Control Block (SCB ) not found, Pointer did not point
to an open session SCB

Notes: The aborted ASPOpenSession call will return a reqAborted error.
AbortSCBPointer points to the original SCB used in the pending
ASPOpenSession call.