示例#1
0
 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)));
     }
 }
示例#2
0
 extern private static int WinClearCommError(IntPtr hFile, ref CommErrorFlags lpErrors, CommStat lpStat);