Specifications
CHAPTER 4
Software Support
70 Detecting Errors
Detecting Errors 4
Applications running on the Mac OS can use the routines described in this section to
detect error conditions or other special events on the PC system. Table 4-2 summarizes
the return codes used to indicate PC system printing or serial communication errors.
rsSetNotificationProc 4
You can use the rsSetNotificationProc control routine to install a user-defined
procedure that is called whenever a special event happens within the driver. The
procedure can be called at interrupt time and puts off handling the event until a
noninterrupt time.
The control call to set the address of the notification procedure is
rsSetNotificationProc = 900.
Parameter block
—> indicates input to the driver
<— indicates output from the driver
Table 4-2 Return codes for PC printing or serial communication errors
Code Description Error type
rsPrintSpoolErr = 0x7F00 Print spool file open or a
write error
Printing
rsPSFileReady = 0x7F01 Ready to print to spool file Printing
rsCOM1SpoolErr = 0x7F01 Serial spool file open or a
write error
Serial
communication
rsCOM2SpoolErr = 0x7F02 Serial spool file open or a
write error
Serial
communication
—> ioCompletion long Pointer to the completion routine.
<— ioResult word Device driver’s result code.
—> ioRefNum word Device driver’s reference number.
—> csCode word Equals rsSetNotificationProc.
—> csParam+0 long Pointer to the notification procedure.
—> csParam+4 long A1Param value.