win10 UWP 获取系统信息
获取系统信息
Windows.System.Profile.AnalyticsVersionInfo analyticsVersion = Windows.System.Profile.AnalyticsInfo.VersionInfo;
reminder = analyticsVersion.DeviceFamily;
ulong v = ulong.Parse(Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamilyVersion);
ulong v1 = ( v & 0xFFFF000000000000L ) >> 48;
ulong v2 = ( v & 0x0000FFFF00000000L ) >> 32;
ulong v3 = ( v & 0x00000000FFFF0000L ) >> 16;
ulong v4 = ( v & 0x000000000000FFFFL );
reminder = $"{v1}.{v2}.{v3}.{v4}";
Windows.ApplicationModel.Package package = Windows.ApplicationModel.Package.Current;
reminder = package.Id.Architecture.ToString();
reminder = package.DisplayName;
EasClientDeviceInformation eas = new EasClientDeviceInformation();
reminder= eas.SystemManufacturer;
reminder把字符串输出到textbox
Windows.Desktop
10.0.10586.29
X86
参考:https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/
博客园博客只做备份,博客发布就不再更新,如果想看最新博客,请访问 https://blog.lindexi.com/
如图片看不见,请在浏览器开启不安全http内容兼容
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。欢迎转载、使用、重新发布,但务必保留文章署名[林德熙](https://www.cnblogs.com/lindexi)(包含链接:https://www.cnblogs.com/lindexi ),不得用于商业目的,基于本文修改后的作品务必以相同的许可发布。如有任何疑问,请与我[联系](mailto:lindexi_gd@163.com)。