locked
Device uniqe id RRS feed

  • Question

  • Hello,

    I've noticed that some devices have different names on different carriers (HTC TyTn for example) and i'm looking for a uniqu
    identifier that distinguish the device model but i can't find such, does anyone know if there's such a uniqe parameter on the device (registry, etc')?
    Thanks.
    Tuesday, September 29, 2009 2:46 PM

Answers

  • Tuesday, September 29, 2009 4:07 PM
  • Try using SystemParameters.OemInfo. You can also experiment with other SpiAction options.


    public class SystemParameters
    {
    	[DllImport( "coredll.dll" )]
    	private static extern void SystemParametersInfo( SpiAction whichParam, int size, StringBuilder platformType, uint notUsed );
    
    	private static string SystemParametersInfo( SpiAction action )
    	{
    		StringBuilder info = new StringBuilder( 255 );
    		SystemParametersInfo( action, info.Capacity, info, 0 );
    		return info.ToString();
    	}
    	enum SpiAction
    	{
    		GETPLATFORMTYPE = 257,
    		GETOEMINFO = 258,
    		GETPROJECTNAME = 259,
    		GETPLATFORMNAME = 260,
    		GETBOOTMENAME = 261,
    		GETPLATFORMMANUFACTURER = 262,
    		GETUUID = 263,
    		GETGUIDPATTERN = 264,
    	}
    	public static string OemInfo
    	{
    		get
    		{
    			return SystemParametersInfo( SpiAction.GETOEMINFO );
    		}
    	}
    }

    Wednesday, September 30, 2009 9:36 AM
  • Hi Robybd,

    Please refer below threads.

    Globally identify a mobile device

    Unique ID in WM5 device


    Hope this may be help.



    If you find my post is helpful for you then mark as a answer.
    Wednesday, September 30, 2009 11:05 AM

All replies

  • Tuesday, September 29, 2009 4:07 PM
  • Try using SystemParameters.OemInfo. You can also experiment with other SpiAction options.


    public class SystemParameters
    {
    	[DllImport( "coredll.dll" )]
    	private static extern void SystemParametersInfo( SpiAction whichParam, int size, StringBuilder platformType, uint notUsed );
    
    	private static string SystemParametersInfo( SpiAction action )
    	{
    		StringBuilder info = new StringBuilder( 255 );
    		SystemParametersInfo( action, info.Capacity, info, 0 );
    		return info.ToString();
    	}
    	enum SpiAction
    	{
    		GETPLATFORMTYPE = 257,
    		GETOEMINFO = 258,
    		GETPROJECTNAME = 259,
    		GETPLATFORMNAME = 260,
    		GETBOOTMENAME = 261,
    		GETPLATFORMMANUFACTURER = 262,
    		GETUUID = 263,
    		GETGUIDPATTERN = 264,
    	}
    	public static string OemInfo
    	{
    		get
    		{
    			return SystemParametersInfo( SpiAction.GETOEMINFO );
    		}
    	}
    }

    Wednesday, September 30, 2009 9:36 AM
  • Hi Robybd,

    Please refer below threads.

    Globally identify a mobile device

    Unique ID in WM5 device


    Hope this may be help.



    If you find my post is helpful for you then mark as a answer.
    Wednesday, September 30, 2009 11:05 AM
  • I think that what robybd wants to do is identify the device model/type not the specific device
    Wednesday, September 30, 2009 11:58 AM
  • Hello,


    First of all thanks for the quick replies i'll try them out.
    Second, regarding my question what i meant is to find API\Registry\File\Etc' which indicates the model of the device because as i mentioned earlier
    some devices have different names on different carriers and i need to group them together.
    Wednesday, September 30, 2009 12:09 PM