Technical information
CHAPTER 3
The PC Interface Driver
40 Control and Status Calls
rsPCStatus 3
You can use the rsPCStatus status call to get information about the state of the PC
hardware. This call returns the current state of the PC.
Parameter block
→ ioCompletion long Pointer to the completion routine
← ioResult word
→ ioRefNum word
→ csCode word Equals rsPCStatus
← csParam+4 long The status word
Table 3-1 shows the meanings of the bits in the status word.
Table 3-1 Bits in the PC status word
Bit Meaning
0 1 = PC is running (rsBooted)
1 1 = VGA screen is enabled (rsVGAEnabled)
2 1 = keyboard is enabled (rsKeyboardEnabled)
3 1 = mouse is enabled (rsMouseEnabled)
4 1 = disk mounting is enabled (rsDiskMountEnabled)
5 1 = shared memory is enabled (rsSharedEnabled)
6 1 = DMA is enabled (rsDMAEnabled)
7 1 = video cable is enabled (rsCableInstalled)
8 1 = modem port is used by COM1
9 1 = printer port is used by COM1
10 1 = modem port is used by COM2
11 1 = printer port is used by COM2
24–27 0000–1111 = video identification
28–31 0000–1111 = type of expansion card (0000 = this card)