@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The ClearCommError API !!!!C# Signature: [DllImport("kernel32.dll")] private static extern bool ClearCommError( [In] IntPtr hFile, // not int, convert int to IntPtr: new IntPtr(12) [Out, Optional] out uint lpErrors, [Out, Optional] out COMSTAT lpStat ); !!!!User-Defined Types: [COMSTAT] !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: The following code: COMSTAT stats = new COMSTAT(); uint flags = 0; ClearCommError(hComm, out flags, out stats); will get you the statistics of the com port passed with hComm. !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: ClearCommError@msdn on MSDN
Edit kernel32.clearcom...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.