COMSTAT

typedef struct _COMSTAT { /* cst */

DWORD fCtsHold : 1;

DWORD fDsrHold : 1;

DWORD fRlsdHold : 1;

DWORD fXoffHold : 1;

DWORD fXoffSent : 1;

DWORD fEof : 1;

DWORD fTxim : 1;

DWORD fReserved : 17;

DWORD cbInQue;

DWORD cbOutQue;

} COMSTAT, *LPCOMSTAT;

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 EOF character has been received.

fTxim

Specifies whether a character is waiting to be transmitted.

fReserved

Reserved.

cbInQue

Specifies the number of characters in the receive queue.

cbOutQue

Specifies the number of characters in the transmit queue.