COMSTAT

typedef struct tagCOMSTAT {

BYTE fCtsHold: 1;

BYTE fDsrHold: 1;

BYTE fRlsdHold: 1;

BYTE fXoffHold: 1;

BYTE fXoffSent: 1;

BYTE fEof: 1;

BYTE fTxim: 1;

WORD cbInQue;

WORD cbOutQue;

} COMSTAT;

The COMSTAT structure contains information about a communications device.

Members

fCtsHold

Specifies whether transmission is waiting for the clear-to-send (CTS) signal to be sent.

fDsrHold

Specifies whether transmission is waiting for the data-set-ready (DSR) signal to be sent.

fRlsdHold

Specifies whether transmission is waiting for the receive-line-signal-detect (RLSD) signal to be sent.

fXoffHold

Specifies whether transmission is waiting as a result of the XOFF character being received.

fXoffSent

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.

fEof

Specifies whether the end-of-file (EOF) character has been received.

fTxim

Specifies whether a character previously passed to the ctx function 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.

See Also

stacom