获取 CPU、RAM 和 GPU 信息 - UWP 应用 [英] Get CPU, RAM and GPU information - UWP App

查看:29
本文介绍了获取 CPU、RAM 和 GPU 信息 - UWP 应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在 UWP 应用中获取计算机的 CPU、GPU 和 RAM 的信息?E 在文本块中显示此信息.

Is possible get the information of the CPU, GPU and RAM of a computer, in a UWP app? E show this information in a textblock.

我想知道处理器型号(例如:Intel Core i7 xxxx)和总内存

I want to know the processor model (for example: Intel Core i7 xxxx), and total RAM

推荐答案

我想知道处理器型号(例如:Intel Core i7 xxxx)和总内存

I want to know the processor model (for example: Intel Core i7 xxxx), and total RAM

如果在这种情况下,UWP 应用无法满足您的需求.在 UWP 中,由于是沙箱,您无法获取系统 CPU、GPU 和 RAM 信息.

If in this case, UWP app cannot meet your demands. In UWP you can not get the system CPU , GPU and RAM information since it is sandbox.

对于 RAM,UWP 只能通过使用注释中提到的 MemoryManager 类来访问有关当前应用程序的内存使用情况的信息.

For RAM, UWP can only access to information on current app's memory usage by using the MemoryManager class as the comment mentioned.

关于GPU信息,目前在UWP app中没有API可以直接访问GPU.您可能需要使用 DirectX 创建 UWP 应用并通过 DirectX 访问信息.您可以在此处找到一些相关示例.

For GPU information, currently there is no API can access GPU directly in UWP app. You may need to create a UWP app with DirectX and access the information by DirectX. You may find some relative samples here.

由于 Win32 可以做到这一点,作为建议,您可以尝试使用 Desktop Bridge 将 Win32 桌面应用程序转换为 UWP.有关如何在 Win32 中获取这些信息,您可以参考 这个.

Since Win32 could do this, as a suggestion, you could try to use Desktop Bridge to convert the Win32 desktop app to UWP. For how to get these information in Win32 you could reference this.

这篇关于获取 CPU、RAM 和 GPU 信息 - UWP 应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆