Important: The information in this document is obsolete and should not be used for new development.
PKillSendReq
ThePKillSendReqfunction cancels the pendingPSendRequestorPNSendRequestfunctions whose queue element pointer you specify.
FUNCTION PKillSendReq (thePBPtr: ATPPBPtr; async: Boolean): OSErr;
thePBPtr- A pointer to an ATP parameter block.
async- A Boolean that indicates whether the function should be executed asynchronously or synchronously. Specify
TRUEfor asynchronous execution.
--> ioCompletion ProcPtr A pointer to the completion routine. <-- ioResult OSErr The function result. --> csCode Integer Always killSendReqfor this function.--> aKillQEl Ptr A pointer to queue element of function
to be removed.
Field Description
aKillQEl- A pointer to the queue element of the pending function that is to be canceled. This is the pointer to the parameter block that you passed to the send request function when you issued the function.
DESCRIPTION
To cancel a specific pendingPSendRequestorPNSendRequestfunction, you specify the pointer to the queue element for the function in theaKillQElfield of the parameter block for thePKillSendReqfunction, then call the function. If the function has
already completed execution or if it is not in the ATP queue for any other reason,PKillSendReqreturns a message (cbNotFound) indicating that it could not find the parameter block.ASSEMBLY-LANGUAGE INFORMATION
To execute thePKillSendReqfunction from assembly language, call the_Controltrap macro with a value ofkillSendReqin thecsCodefield of the parameter block. To execute this function from assembly language, you must also specify the .ATP driver reference number.RESULT CODES
noErr 0 No error cbNotFound -1102 The aKillQElparameter does not point to aPSendRequestorPNSendRequestqueue elementSEE ALSO
To send requests, use thePSendRequestfunction, described on page 6-24, and thePNSendRequestfunction, described on page 6-27.