Serial Framework C++ Edition

◆ PurgeComm()

int PurgeComm ( const wclSerialPurgeFlags Flags) const

Discards all characters from the output or input buffer of a specified communications resource. It can also terminate pending read or write operations on the resource.

Parameters
FlagsThe set of the wclSerialPurgeFlags flags.
Returns
If the function succeed the return value is WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.
See also
wclSerialPurgeFlags