【发布时间】:2020-01-09 09:38:35
【问题描述】:
我想开发一个Windows UWP软件,有以下功能:
一种。获取 CPU 信息。
湾。获取 GPU 信息。(不支持 UWP)
C。获取风扇速度信息。(不支持 UWP)。
因为 UWP 不支持 "b" 和 "c",所以我需要使用 WMI API(COM API) 或 win32 API。
问题是WMI和win32 API都不能在UWP程序中调用。
我找到了两种解决问题的方法。一种是使用桌面扩展(windows.fullTrustProcess),另一种是WCF(Windows Communication Foundation)。
我的问题是:
1.根据我的情况,我应该使用哪种方法?
2. 为什么?
【问题讨论】: