Clear the DCB first and then set the required fields:
DCB dcb;
::ZeroMemory(&dcb, sizeof(dcb));
dcb.DCBlength = sizeof(dcb);
dcb.fBinary = TRUE;
dcb.BaudRate = CBR_9600;
dcb.ByteSize = 8;
dcb.StopBits = ONESTOPBIT;
dcb.fOutxCtsFlow = TRUE;
dcb.fRtsControl = RTS_CONTROL_HANDSHAKE;
dcb.fOutX = dcb.fInX = TRUE;
dcb.XonChar = '\x11';
dcb.XoffChar = '\x13';
dcb.fTXContinueOnXoff = TRUE;
dcb.XonLim = RxBufSize - (RxBufSize / 2);
dcb.XoffLim = RxBufSize - (RxBufSize / 4);