PBKillIOSync
PBKillIO Stop all current and pending I/O with the device driver
#include <Devices.h> Device Manager
OSErr PBKillIO(pb, async );
ParmBlkPtr pb ; address of a 50-byte IOParam structure
Boolean async ; 0=await completion; 1=immediate return
returns Error Code; 0=no error
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.
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
badUnitErr (-21) refNum doesn't match unit table
unitEmptyErr (-22) refNum specifies NIL handle in unit table