avec cette config ça devrait être bon :
DCB dcb = { sizeof(DCB), // DCBlength 9600, // BaudRate TRUE, // fBinary FALSE, // fParity FALSE, // fOutxCtsFlow FALSE, // fOutxDsrFlow DTR_CONTROL_ENABLE, // fDtrControl FALSE, // fDsrSensitivity FALSE, // fTXContinueOnXoff FALSE, // fOutX FALSE, // fInX FALSE, // fErrorChar FALSE, // fNull RTS_CONTROL_ENABLE, // fRtsControl FALSE, // fAbortOnError 0, // fDummy2 0, // wReserved 0x100, // XonLim 0x100, // XoffLim 8, // ByteSize NOPARITY, // Parity ONESTOPBIT, // StopBits 0x11, // XonChar 0x13, // XoffChar '?', // ErrorChar 0x1A, // EofChar 0x10 // EvtChar };
|