Retrieves phone line status for a modem communication channel.
GetLineStatus(short ChannelID, long *Status); |
Parameters
ChannelID
A channel ID (0-7) used to identify a communication channel.
Status
The value of variable pointed to by Status can be one of the following values:
Value |
Comment |
1 |
There is an incoming call. |
2 |
The call is proceeding. |
3 |
The line is connected. |
4 |
The line is disconnected. |
5 |
The line is busy, please dial later. |
6 |
No dial tone was detected. |
7 |
The remote side does not answer. |
Remarks
Use SetPortParam method to define a relationship between a modem index and a communication channel ID (0-7).
See Also