Technical information

CHAPTER 3
The PC Interface Driver
Control and Status Calls 39
When a print job has been completed, the driver notifies the application by means of the
rsSetNotificationProc procedure (defined on page 44). The driver also notifies the
application if it has trouble saving the spool data.
rsSetDeactivateKey 3
You can use the rsSetDeactivateKey control call to set the deactivate key along with
its modifiers and a user-defined task. When the PC has control of the keyboard, the
driver monitors the keyboard input data for the deactivate key combination and calls the
user-defined task when that key combination occurs.
Parameter block
ioCompletion long Pointer to the completion routine
ioResult word
ioRefNum word
csCode word Equals rsSetDeactivateKey
csParam+0 long Pointer to user-defined task
csParam+4 word Modifiers
csParam+6 word The deactivate key
Upon return, the parameter block is set as follows:
csParam+0 long Pointer to the previous user-defined task
csParam+4 word The previous modifiers
csParam+6 word The previous deactivate key
The user-defined task is called during NeedTime after the deactivate key and modifiers
are pressed. If the user-defined task is null, no task is called. The modifiers are specified
as they appear in the KeyMap+6. The value of the deactivate key is the Macintosh key
code of the desired key.
Control and Status Calls 3
A program running on the Mac OS can use the PC Interface driver to make control and
status calls to the PC running on the DOS Compatibility Card. You can perform the
following functions:
getting the status of the PC
booting (starting) the PC
resetting the PC
enabling and disabling the video display of the PC
enabling and disabling disk mounting on the PC
activating and deactivating keyboard operation by the PC
activating and deactivating mouse tracking by the PC
terminating print spooling from the PC