DCB Structure
DCB Structure
Defines the control setting for a serial communications device.
typedef struct _DCB {
DWORD DCBlength;
DWORD BaudRate;
DWORD fBinary :1;
DWORD fParity :1;
DWORD fOutXCtsFlow :1;
DWORD fOutXDsrFlow :1;
DWORD fDtrControl :2;
DWORD fDsrSensitivity :1;
DWORD fTXContinueOnXoff :1;
DWORD fOutX :1;
DWORD fInX :1;
DWORD fErrorChar :1;
DWORD fNull :1;
DWORD fRtsControl :2;
DWORD fAbortOnError :1;
DWORD fDummy2 :17;
WORD wReserved;
WORD XonLim;
WORD XoffLim;
BYTE ByteSize;
BYTE Parity;
BYTE StopBits;
char XonChar;
char XoffChar;
char ErrorChar;
char EofChar;
char EvtChar;
WORD wReserved1;} DCB,
*LPDCB;
Members
DCBlength
The length of the structure, in bytes. The caller must set this member to sizeof(DCB).
BaudRate
The baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes.