internal TrackerInfo(TrackerInfoInterop trackerInfoInterop) { Type = trackerInfoInterop.Type; Capabilities = trackerInfoInterop.Capabilities; DisplayRectInOSCoordinates = trackerInfoInterop.DisplayRectInOSCoordinates; DisplaySizeMm = trackerInfoInterop.DisplaySizeMm; Url = trackerInfoInterop.Url.ToAnsiString(); FriendlyName = trackerInfoInterop.FriendlyName.ToAnsiString(); MonitorNameInOS = trackerInfoInterop.MonitorNameInOS.ToAnsiString(); ModelName = trackerInfoInterop.ModelName.ToAnsiString(); Generation = trackerInfoInterop.Generation.ToAnsiString(); SerialNumber = trackerInfoInterop.SerialNumber.ToAnsiString(); FirmwareVersion = trackerInfoInterop.FirmwareVersion.ToAnsiString(); IsAttached = trackerInfoInterop.IsAttached; }
internal static extern bool GetTrackerInfoByUrl([MarshalAs(UnmanagedType.LPStr)] string trackerUrl, out TrackerInfoInterop trackerInfoInterop);
internal static extern bool GetTrackerInfo(out TrackerInfoInterop trackerInfoInterop);
internal static TrackerInfo Create(TrackerInfoInterop trackerInfoInterop) { return(new TrackerInfo(trackerInfoInterop)); }