The SetRealPortLineControl method sets the line control register (LCR) for real serial port. The line control register controls the data size, the number of stopbits, as well as the parity.
|LONG Parity,||// Parity|
|LONG DataBits||// Data Bits|
StopBits[out] Number of stop bits to be used. Can have one of the following values:
|0||1 stop bit|
|1||1.5 stop bits|
|2||2 stop bits|
Parity[out] Parity scheme to be used. Can have one of the following values:
DataBits [out] Number of bits in bytes transmitted and received.
If the function succeeds, the return value is TRUE, otherwise FALSE.
You can set this method forcibly, without waiting for events.