PKillSendReq
PKillSendReq Abort a PNSendRequest or PSendRequest
#include <AppleTalk.h> AppleTalk Manager
OSErr PKillSendReq( thePBptr, async);
ATPPBPtr thePBptr; pointer to an ATPParamBlock structure
Boolean async; 0=await completion; 1=immediate return
returns Error Code; 0=no error
PKillSendReq aborts PNSendRequest or PSendRequest calls.
thePBptr is a pointer to an ATPParamBlock structure. The relevant fields are
as follows:
Out-InName Type Size Offset Description
Æ csCode short 2 26 Always PKillSendRequest
Æ aKillQEl Ptr 1 44 Pointer to a queue element
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:
noErr (0) No error
cbNotFound -1102 aKillQEl does not point to a SendReq or NSendReq
queue element

Notes: PKillSendReq is functionally equivalent to PRelTCB, except that it
takes different arguments, and will abort both PSendRequest and
PNSendRequest . To abort one of these calls, place a pointer to the queue
element of the call to abort in aKillQEl and issue the PKillSendReq.