How to get information about the name and OS version in C # on Windows Mobile 7?

How to find the OS name and version of os installed on a phone that uses os Windows phones.

+4
source share
4 answers

you can try these links

http://msdn.microsoft.com/en-us/library/ff941122%28v=VS.92%29.aspx

http://msdn.microsoft.com/en-us/library/microsoft.phone.info.deviceextendedproperties%28v=VS.92%29.aspx

you can try this

public MainPage() { InitializeComponent(); GetDeviceInfo(); } public void GetDeviceInfo() { long ApplicationMemoryUsage = DeviceStatus.ApplicationCurrentMemoryUsage; long PeakMemoryUsage = DeviceStatus.ApplicationPeakMemoryUsage; string FirmwareVersion = DeviceStatus.DeviceFirmwareVersion; string HardwareVersion = DeviceStatus.DeviceHardwareVersion; string Manufacturer = DeviceStatus.DeviceManufacturer; string DeviceName = DeviceStatus.DeviceName; long TotalMemory = DeviceStatus.DeviceTotalMemory; string OSVersion = Environment.OSVersion.Version.ToString(); ; PowerSource powerSource = DeviceStatus.PowerSource; AddToList("Memory Usage :" + ApplicationMemoryUsage); AddToList("Peak Memory Usage :" + PeakMemoryUsage); AddToList("Firmware Version :" + FirmwareVersion); AddToList("Hardware Version :" + HardwareVersion); AddToList("Manufacturer :" + Manufacturer); AddToList("Total Memory :" + TotalMemory); AddToList("Power Source:" + powerSource.ToString()); AddToList("Operating System: Windows Phone " + OSVersion.ToString()); } public void AddToList(string Property) { lstboxDeviceInfo.Items.Add(Property); } 

look here for more information

+8
source

Check out the DeviceStatus class.

See the MSDN for this.

Added - after the first comment

Check out System.Environment

 System.Environment.OSVersion 
+2
source

I think that the version should be caught with Environment.OSVersion.Version , and I think you will have to compare them with the list of operating systems used.

  • Windows Mobile 6 5.2
  • Wndows Mobile 5.0 5.1
  • Windows Mobile 2003 SE 4.21 ....

I found this article that can help determine the platform.

+1
source

How about using

Environment.OSVersion

MSDN Article

0
source

Source: https://habr.com/ru/post/1385854/


All Articles