internal static bool ClearCommError(IntPtr hPort, ref CommErrorFlags flags, CommStat stat) { if (FullFramework) { return(Convert.ToBoolean(WinClearCommError(hPort, ref flags, stat))); } else { return(Convert.ToBoolean(CEClearCommError(hPort, ref flags, stat))); } }
extern private static int WinClearCommError(IntPtr hFile, ref CommErrorFlags lpErrors, CommStat lpStat);