Tell me the difference of Windows 2000's DCB structure from Windows 98's

Tell me the difference of Windows 2000's DCB structure from Windows 98's

Post by ±?à?± » Fri, 25 Jan 2002 17:24:59



Who can tell me  the difference of  Windows 2000's DCB structure from
Windows 98's

I Know It is :
typedef struct _DCB { // dcb

    DWORD DCBlength;           // sizeof(DCB)

    DWORD BaudRate;            // current baud rate
    DWORD fBinary: 1;          // binary mode, EOF ?| ??????? ??
    DWORD fParity: 1;          // enable parity checking
    DWORD fOutxCtsFlow:1;      // CTS output flow control
    DWORD fOutxDsrFlow:1;      // DSR output flow control
    DWORD fDtrControl:2;       // DTR flow control type
    DWORD fDsrSensitivity:1;   // DSR sensitivity
    DWORD fTXContinueOnXoff:1; // XOFF continues Tx
    DWORD fOutX: 1;            // XON/XOFF out flow control
    DWORD fInX: 1;             // XON/XOFF in flow control
    DWORD fErrorChar: 1;       // enable error replacement
    DWORD fNull: 1;            // enable null stripping
    DWORD fRtsControl:2;       // RTS flow control
    DWORD fAbortOnError:1;     // abort reads/writes on error
    DWORD fDummy2:17;          // reserved
    WORD wReserved;            // not currently used
    WORD XonLim;               // transmit XON threshold
    WORD XoffLim;              // transmit XOFF threshold
    BYTE ByteSize;             // number of bits/byte, 4-8
    BYTE Parity;               // 0-4=no,odd,even,mark,space
    BYTE StopBits;             // 0,1,2 = 1, 1.5, 2
    char XonChar;              // Tx and Rx XON character
    char XoffChar;             // Tx and Rx XOFF character
    char ErrorChar;            // error replacement character
    char EofChar;              // end of input character
    char EvtChar;              // received event character
    WORD wReserved1;           // reserved; do not use

Quote:} DCB;

 
 
 

Tell me the difference of Windows 2000's DCB structure from Windows 98's

Post by Jochen Kalmbac » Fri, 25 Jan 2002 17:44:34


Quote:> Who can tell me  the difference of  Windows 2000's DCB structure from
> Windows 98's

There is no difference...
The only big difference is that the default values for the DCB are different
in Win95 and W2k.

If you want to use your program in Win95 and W2K/XP you have to set ALL of
the DCB entries to a values you want!!!

You do not need to call "GetCommState"...

Greetings
  Jochjen