Beispiel #1
0
 private Device(NativeHandles.DeviceHandle handle, string serialNumber, HardwareVersion version)
 {
     this.handle           = handle;
     this.handle.Disposed += Handle_Disposed;
     SerialNumber          = serialNumber;
     Version = version;
 }
Beispiel #2
0
 private static bool TryGetHardwareVersion(NativeHandles.DeviceHandle deviceHandle, out HardwareVersion version)
 => NativeApi.DeviceGetVersion(deviceHandle, out version) == NativeCallResults.Result.Succeeded;