[DllImport("kernel32.dll")]
private static extern bool ClearCommError(
[In] int hFile,
[Out, Optional] uint lpErrors,
[In, Out, Optional] ref COMSTAT lpStat
);
None.
Please add some!
The following code:
COMSTAT stats = new COMSTAT();
ClearCommError(hComm, 0, ref stats);
will get you the statistics of the com port passed with hComm.
Do you know one? Please contribute it!