使用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

http://social.msdn.microsoft.com/Forums/windowsapps/en-US/02d77a0a-384b-495f-80a5-2ece50df40e2/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

上一篇:Laravel技巧:使用load、with预加载 区别


下一篇:RPC 框架之 Goole protobuf