In The Hand LtdIn The Hand
GetUniqueID Method (key)
NamespacesInTheHand.WindowsMobile.FormsMobileDeviceGetUniqueID(String)
.NET Components for Mobility
Returns an application-specific hash of the device identifier. The application can use this hash to uniquely identify the device.
Declaration Syntax
C#Visual Basic
public static byte[] GetUniqueID(
	string key
)
Public Shared Function GetUniqueID ( _
	key As String _
) As Byte()
Parameters
key (String)
Application-provided data, which is hashed with the device identifier. Must be at least 4 characters long.
Return Value
Returns a byte array containing a unique identifier for the device. On Windows Mobile 5.0 and later this is always 20 bytes long and is the device ID hashed with the provided application identifier. On Pocket PC 2003 and generic Windows CE devices this is the underlying device id returned by the system. The length may vary but is often 16 bytes. It consists of a platform ID and a preset ID.
Remarks
On devices prior to Windows Mobile 5.0 and generic Windows Embedded Compact devices this method returns the un-hashed device ID as set by the platform manufacturer - the key parameter is ignored.
Requirements
Windows Mobile
Pocket PC 2003, Windows Mobile Version 5.0 and later
Windows Embedded Compact
Windows CE.NET 4.0 and later

Assembly: InTheHand.WindowsMobile (Module: InTheHand.WindowsMobile) Version: 7.0.0.0