how long is PPC device id?

  • Thread starter Thread starter Hari
  • Start date Start date
H

Hari

Hi,

I used the sample in
http://samples.gotdotnet.com/quickstart/compactframework/ for
retrieving the device id.
But this show up
"4D006900630072006F0073006F0066007400200044006500760069006300650045006D0075006C00610074006F0072000000-4E4B4E6F4B69746C0000000000000000"
on my emulator. Is the device id really this big?? Its actually a
combination of presetid and platformid. Is any one of these sufficient
to uniquely identify my device. I hope no. Is there any other way that
i could get short identifier for the device. Is the device id same as
ROM id. Please Help!



Thanks,


Hari.
 
Firstly you need to try this with a real device since the Emulator doesn't
truly support a unique ID. What you can see returned is a string
containing:-
"Microsoft DeviceEmulator" Normally this id would be numeric on a real
device. As for length they can differ, I've seen devices return 16 or 20
bytes. You should be aware that your code should be signed to get this id on
a real device. So if possible you should use GetDeviceUniqueID which is an
unprivileged API available on WM5.0.

Peter
 
Back
Top