ModemStatus
ModemStatus Get information about Mac Portable internal modem Byte *Status internal modem status (see below) returns 0 = noErr
The ModemStatus function returns information about the internal modem in the Macintosh Portable computer.
The bits in the Status parameter are defined as follows:
Bit Meaning
7 Reserved.
6 Reserved.
5 The modem is on or off hook. If 1, the modem is off hook.
4 The ring-detect state. If 1, the modem has detected an incoming call.
3 The modem is or is not installed. If 1, an internal modem is installed.
2 The state of the ring-wakeup feature. If 1, the ring-wakeup feature
is enabled.
1 Reserved; must always be set to 1.
0 The modem's power is on or off. If 1, the modem is switched on.
You can use the constants shown in Power Mgr Data to check the values of these bits.
The user can use the Portable control panel to enable or disable the
ring-wakeup feature. When the ring-wakeup feature is enabled and the
Macintosh Portable is in the sleep state, the Power Manager returns the computer to the operating state when the modem receives an incoming call.
You can use the serial power control functions described in
The modem indicates that it is off hook whenever it is busy sending or
receiving data or processing commands. The modem cannot receive an incoming
call when it is off hook.