1. Obtain the OS Version: System. Environment. OSVersion. Version
2. "device ID" set in "about" of the system"
Private string GetDeviceName ()
{
Return System. Net. Dns. GetHostName (); // ppc or smtphone
}
Or
Public static string MachineName
{
Get
{
String machineName = "";
Try
{
RegistryKey ident = Registry. LocalMachine. OpenSubKey ("Ident ");
MachineName = ident. GetValue ("Name"). ToString ();
Ident. Close ();
}
Catch
{
Throw new PlatformNotSupportedException ();
}
Return machineName;
}
}
3. Obtain the device model
/// <Summary>
/// Obtain OEM information. The device model
/// </Summary>
Public static string OemInfo
{
Get
{
StringBuilder oemInfo = new StringBuilder (50 );
If (SystemParametersInfo4Strings (uint) SystemParametersInfoActions. GetOemInfo, (uint) oemInfo. Capacity, oemInfo, 0) = 0)
{
Throw new Exception ("Retrieving OEM info failed ");
}
Return oemInfo. ToString ();
}
}