Specifications
CHAPTER 4
Software Support
64 Control and Status Calls
■ terminate print spooling from the PC system
In some instances, for example, in the case of bits 0, 1, and 7, it is better to use the Gestalt
function. Refer to “Gestalt Selector” on page 78 for further information.
Note
Applications can call Gestalt to get information about the operating
environment. The Gestalt function then calls other selector functions. ◆
rsPCStatus 4
You can use the rsPCStatus status routine to get information about the state of the PC
hardware. This routine returns the current state of the PC system.
The status code for this routine is rsPCStatus = 701.
Parameter block
—> indicates input to the driver
<— indicates output from the driver
The status word is a 32-bit word. When the bits are set (1), they indicate different
conditions in the PC system, for example, whether it is running, if the screen is enabled,
and so forth. Table 4-1 lists the meaning of the bits in the status word.
Note
In the case of bits 0, 1, and 7, it is better to use the Gestalt function to get
the required information. ◆
—> ioCompletion long Pointer to the completion routine.
<— ioResult word Device driver’s result code.
—> ioRefNum word Device driver’s reference number.
—> csCode word Equals rsPCStatus.
<— csParam+4 long The status word.
Table 4-1 PC status word
Bit Meaning
0 1 = PC running (rsBooted)
1 1 = VGA screen enabled (rsVGA Enabled)
2 1 = keyboard enabled (rsKeyboardEnabled)
3 1 = mouse enabled (rsMouseEnabled)