Important: The information in this document is obsolete and should not be used for new development.
ASPAbortOS
TheASPAbortOSfunction cancels a specific pending request to open an ASP session function.
FUNCTION ASPAbortOS (thePBptr: XPPParmBlkPtr; async: Boolean): OSErr;
thePBptr- A pointer to an XPP parameter block.
async- A Boolean that specifies whether the function should be executed asynchronously or synchronously. Specify
TRUEfor asynchronous execution.
--> ioCompletion ProcPtrA pointer to a completion routine. <-- ioResult OSErrThe function result. --> ioRefNum IntegerThe .XPP driver reference number. --> csCode IntegerAlways abortOS for this function. --> abortSCBPointer PtrA pointer to the session control block.
Field Description
abortSCBPointer- A pointer to the session control block (SCB) that you passed to the
ASPOpenSessionfunction that you want to cancel.DESCRIPTION
TheASPAbortOSfunction cancels a single call to theASPOpenSessionfunction if that function has not yet completed execution. You identify the request to be canceled by passing theASPAbortOSfunction the pointer to the original session control block that you specified to open the session.SPECIAL CONSIDERATIONS
Note that you must provide the .XPP driver reference number as an input parameter to this function. You can obtain the driver reference number by calling the Device Manager'sOpenDriverfunction.ASSEMBLY-LANGUAGE INFORMATION
To execute theASPAbortOSfunction from assembly language, call the_Controltrap macro with a value ofabortOSin thecsCodefield of the parameter block. You must also specify the .XPP driver reference number. To execute the_Controltrap asynchro-
nously, include the value,ASYNCin the operand field.RESULT CODES
cbNotFound-1102 Specified SCB was not found (there is no outstanding
open session function call with this SCB)SEE ALSO
For information on the session control block, see the description of theASPOpenSessionfunction on page 8-9.