Returns an application-specific hash of the device identifier.
The application can use this hash to uniquely identify the device.
- key (String)
- Application-provided data, which is hashed with the device identifier. Must be at least 4 characters long.
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.
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 |