如何在 C++ 中检索 UWP 中的显卡信息

How to retrieve Graphics Card Information in UWP in C++

似乎有几种方法可以在 Win32 环境中使用 ManagementObjectSearcher 等接口。但是,我无法找到在 UWP 中实现它的方法。设备接口 类 中也没有类似于图形卡适配器的东西。

我找不到关于此主题的任何 MSDN 文档。

查看 UWP 中支持的 Win32 API 列表: https://msdn.microsoft.com/en-us/library/windows/apps/mt644397.aspx

它包含IDXGIFactory接口,它有EnumAdapters方法: https://msdn.microsoft.com/en-us/library/windows/apps/bb174538.aspx