Important: The information in this document is obsolete and should not be used for new development.
ERdCancel
TheERdCancelfunction cancels execution of a specific call to theEReadfunction.
FUNCTION ERdCancel (thePBptr: EParamBlkPtr; async: Boolean): OSErr;
thePBptr- A pointer to a parameter block of type
EParamBlock.async- A Boolean value that specifies whether the function should be
executed asynchronously or synchronously. SpecifyTRUEfor asynchronous execution.
--> ioCompletion ProcPtr A pointer to completion routine. <-- ioResult OSErr The result code. --> ioRefNum Integer The driver reference number. --> csCode Integer Always ENetRdCancelfor this function.--> ePointer Ptr A pointer to EReadparameter block.
Field Description
ePointer- A pointer to the .ENET parameter block that you specified when you called the
EReadfunction that you want to cancel.DESCRIPTION
To cancel anEReadfunction request using theERdCancelfunction, you must have called theEReadfunction asynchronously. You specify in theePointerparameter a pointer to the parameter block that you used when you called theEReadfunction.When you call the
ERdCancelfunction, the pendingEReadfunction that you cancel receives thereqAbortedresult code.TOKEN RING AND FDDI CONSIDERATIONS
This function is not valid for token ring and FDDI.ASSEMBLY-LANGUAGE INFORMATION
To execute theERdCancelfunction from assembly language, call the_Control
trap macro with a value ofENetRdCancelin thecsCodefield of the parameter
block. To execute the_Controltrap asynchronously, include the value,ASYNCin
the operand field.RESULT CODES
noErr 0 No error cbNotFound -1102 EReadnot active