Ejemplo n.º 1
0
        protected override bool TryCreateSerialDevice(object key, out Device device)
        {
            var path = (SerialDevicePath)key;

            device = WinSerialDevice.TryCreate(path.DevicePath, path.FileSystemName, path.FriendlyName); return(true);
        }
Ejemplo n.º 2
0
 internal WinSerialStream(WinSerialDevice device)
     : base(device)
 {
     _closeEventHandle = NativeMethods.CreateManualResetEventOrThrow();
 }