Specifications
CHAPTER 4
Software Support
62 Configuring the PC System
rsSetParallelPortConfig 4
You can use the rsSetParallelPortConfig control routine to set the configuration of
the parallel port emulation. The parallel port is used for a printer. A pointer to an
RSParallelConfig data structure is passed in csParam.
When a print job has been completed, the driver notifies the application by means of the
rsSetNotificationProc procedure, defined in “rsSetNotificationProc” on page 70.
The driver also notifies the application if it has trouble saving the spool data.
The control call for this routine is rsSetParallelPortConfig = 400.
Parameter block
—> indicates input to the driver
<— indicates output from the driver
The RSParallelConfig data structure in the csParam field is defined below.
Field descriptions
eojTimeOut field Specifies the number of seconds the parallel port may be inactive
before the driver will force an end of job timeout. If this field is set
to 0, the driver does not force the end of job based on time.
vRefNum field Contains the reference number of the volume that contains the
directory.
spoolDirID field The ID of the directory where the spool files will be stored.
rsSetDeactivateKey 4
You can use the rsSetDeactivateKey control routine to set the deactivate key along
with its modifiers and a user-defined task. When the PC system has control of the
—> ioCompletion long Pointer to the completion routine.
<— ioResult word Device driver’s result code.
—> ioRefNum word Device driver’s reference number.
—> csCode word Equals rsSetParallelPortConfig.
—> csParam+0 long Pointer to RSParallelConfig.
typedef struct{
short eojTimeOut; // End of job after n seconds of no data
short vRefNum; // RefNum of the Macintosh volume the directory is on
long spoolDirID; // RefNum for spool directory
} RSParallelConfig, *RSParallelConfigPtr;