使用C#在Windows应用商店程序中获取CPU信息
using Windows.Devices.Enumeration; string guidStr="{97FADB10-4E33-40AE-359C-8BEF029DBDD0}"; var selector = "System.Devices.InterfaceClassGuid:=\"" + guidStr + "\""; var interfaces = await DeviceInformation.FindAllAsync(selector, null); foreach (DeviceInformation deviceInterface in interfaces) { //do anything you would like DeviceThumbnail thumbnail = await deviceInterface.GetThumbnailAsync(); DeviceThumbnail glyph = await deviceInterface.GetGlyphThumbnailAsync(); }
api for cpu details in windows 8 store apps
Device Interface Classes for Battery and ACPI devices
http://msdn.microsoft.com/en-us/library/ff541346(v=vs.85).aspx
Device enumeration sample
http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169