typedef struct tagCOMSTAT { /* cmst */
BYTE status; /* status of transmission */
UINT cbInQue; /* count of characters in Rx Queue */
UINT cbOutQue; /* count of characters in Tx Queue */
} COMSTAT;
The COMSTAT structure contains information about a communications device.
status
Specifies the status of the transmission. This member can be one or more of the following flags:
Flag | Meaning |
CSTF_CTSHOLD | Specifies whether transmission is waiting for the CTS (clear-to-send) signal to be sent. |
CSTF_DSRHOLD | Specifies whether transmission is waiting for the DSR (data-set-ready) signal to be sent. |
CSTF_RLSDHOLD | Specifies whether transmission is waiting for the RLSD (receive-line-signal-detect) signal to be sent. |
CSTF_XOFFHOLD | Specifies whether transmission is waiting as a result of the XOFF character being received. |
CSTF_XOFFSENT | Specifies whether transmission is waiting as a result of the XOFF character being transmitted. Transmission halts when the XOFF character is transmitted and used by systems that take the next character as XON, regardless of the actual character. |
CSTF_EOF | Specifies whether the end-of-file (EOF) character has been received. |
CSTF_TXIM | Specifies whether a character is waiting to be transmitted. |
cbInQue
Specifies the number of characters in the receive queue.
cbOutQue
Specifies the number of characters in the transmit queue.