尝试使用此处发布的解决方案如何在 C# 中快速获取硬件 ID?在这里http://www.codeproject.com/Articles/17973/How-To-Get-Hardware-Information-CPU-ID-MainBoard-I但似乎 wpf 没有 ManagementObjectCollection。我已经加了
using System.Management;
using System.Management.Instrumentation;
不过,在我的代码中。有什么方法可以使用 wpf 来获取 cpu id 等等?