public Port(string PortName) { this.hPort = (IntPtr) (-1); this.rxBufferSize = 0x400000; this.rthreshold = 1; this.txBufferSize = 0x400000; this.sthreshold = 1; this.rxBufferBusy = new Mutex(); this.dcb = new DCB(); this.threadStarted = new ManualResetEvent(false); this.closeEventName = "CloseEvent"; this.txOverlapped = IntPtr.Zero; this.rxOverlapped = IntPtr.Zero; this.Capabilities = new CommCapabilities(); this.PortName = PortName; this.Init(); }
public Port(string PortName) { this.hPort = (IntPtr)(-1); this.rxBufferSize = 0x400000; this.rthreshold = 1; this.txBufferSize = 0x400000; this.sthreshold = 1; this.rxBufferBusy = new Mutex(); this.dcb = new DCB(); this.threadStarted = new ManualResetEvent(false); this.closeEventName = "CloseEvent"; this.txOverlapped = IntPtr.Zero; this.rxOverlapped = IntPtr.Zero; this.Capabilities = new CommCapabilities(); this.PortName = PortName; this.Init(); }
internal override bool GetCommProperties(IntPtr hPort, CommCapabilities commcap) { return(Convert.ToBoolean(CEGetCommProperties(hPort, commcap))); }
private static extern int CEGetCommProperties(IntPtr hFile, CommCapabilities commcap);
private static extern int WinGetCommProperties(IntPtr hFile, CommCapabilities commcap);
override internal bool GetCommProperties(IntPtr hPort, CommCapabilities commcap) { return Convert.ToBoolean(WinGetCommProperties(hPort, commcap)); }
internal virtual bool GetCommProperties(IntPtr hPort, CommCapabilities commcap) {return false;}
internal virtual bool GetCommProperties(IntPtr hPort, CommCapabilities commcap) { return(false); }