PBKillIOSync
PBKillIO Stop all current and pending I/O with the device driver Boolean async ; 0=await completion; 1=immediate return PBKillIO stops all current and pending I/O with device driver (ioRefNum) on the drive specified by ioVRefNum to memory. Completions routines for all
requests are called with abortErr (-27) being returned for each ioRequest.
pb is the address of a 50-byte IOParam structure. The following fields are relevant:
Out-In Name Type Size Offset Description
-> ioCompletion ProcPtr 4 12 Completion routine address (if async =TRUE) -> ioRefNum short 2 24 Device reference number
<- ioResult OSErr 2 16 Error Code (0=no error, 1=not done yet) 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.
noErr (0) No error
badUnitErr (-21) refNum doesn't match unit table
unitEmptyErr (-22) refNum specifies NIL handle in unit table