Question

MikaelKoskinen on Wed, 15 Aug 2012 11:23:49


I'm porting a WP7 app to WinRT (C#) and I'm struggling to find APIs which would allow me to find information about the current device. In particular, this is the information I would like to access through my app:

  • Device manufacturer
  • Device model
  • Device firmware
  • Device total memory

In WP7, we have the Microsoft.Phone.Info.DeviceStatus-class which contains all this info. Is there anything similar available from a WinRT app?

Replies

Rob Caplan [MSFT] on Thu, 16 Aug 2012 01:43:38


Sorry, that information is not available.

--Rob

Alecazam on Wed, 22 Aug 2012 21:23:41


Okay, so no physical core count, and no physical memory amount, and no os version, and no computer name, and no .....  The physical memory ommision from the api is going to make tuning my app for mobile devices very difficult.  Right now we're faking the memory, so all Win 8 devices have 1GB.

Simon Tan on Sat, 08 Sep 2012 00:31:55


Are there plans to introduce such APIs in the future? There are lots of reasons why one would want to have manufacturer-specific functionality, so such an API would be immensely helpful. Anything to help identify what kind of machine the app is running on would help.

mman2606 on Tue, 27 Nov 2012 13:43:14


Hi Mikael,

Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation deviceInfo = new Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation();

string manufacter = deviceInfo.SystemManufacturer;



Look at deviceInfo..

Mickael