PLEASE HELP: No UUID on new Mobile 5.0 devices?

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that Microsoft
provided gives 0000-0000-... for the UUID. I thought all devices now must
have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Sergey,

I am using the Microsoft code. It just returns zeroes. Interestingly the
About screen has no UUID, but it has an ESN number. I'd be OK if I could
get some code to get the ESN number.

But I really did thought that after PC 2002, devices were guaranteed to have
a unique Device ID. Anyone from Microsoft like to chime in here. Was I
wrong? Should developers NOT use the Device ID? If not, how should we
protect our software from copying?

Thanks,

Hilton


Sergey Bogdanov said:
What code did you try? It seems that OEM didn't provide support for
IOCTL_HAL_GET_UUID [1], but maybe IOCTL_HAL_GET_DEVICEID [2] will work for
you. You may the code from this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp


HTH

[1]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETUUID.asp
[2]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETDEVICEID.asp



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that Microsoft
provided gives 0000-0000-... for the UUID. I thought all devices now
must have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Exactly what API are you calling?

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Hilton said:
Sergey,

I am using the Microsoft code. It just returns zeroes. Interestingly the
About screen has no UUID, but it has an ESN number. I'd be OK if I could
get some code to get the ESN number.

But I really did thought that after PC 2002, devices were guaranteed to
have a unique Device ID. Anyone from Microsoft like to chime in here.
Was I wrong? Should developers NOT use the Device ID? If not, how should
we protect our software from copying?

Thanks,

Hilton


Sergey Bogdanov said:
What code did you try? It seems that OEM didn't provide support for
IOCTL_HAL_GET_UUID [1], but maybe IOCTL_HAL_GET_DEVICEID [2] will work
for you. You may the code from this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp


HTH

[1]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETUUID.asp
[2]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETDEVICEID.asp



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com

Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that Microsoft
provided gives 0000-0000-... for the UUID. I thought all devices now
must have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Robert,

I use this code:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp

which works great on everything until the new Sprint PPC6700.

Curious: if it actually does have a UUID, why doesn't it display it on its
System Info screen like all the other Pocket PCs?

Thanks for your post.

Hilton

Robert Levy said:
Exactly what API are you calling?

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Hilton said:
Sergey,

I am using the Microsoft code. It just returns zeroes. Interestingly
the About screen has no UUID, but it has an ESN number. I'd be OK if I
could get some code to get the ESN number.

But I really did thought that after PC 2002, devices were guaranteed to
have a unique Device ID. Anyone from Microsoft like to chime in here.
Was I wrong? Should developers NOT use the Device ID? If not, how
should we protect our software from copying?

Thanks,

Hilton


Sergey Bogdanov said:
What code did you try? It seems that OEM didn't provide support for
IOCTL_HAL_GET_UUID [1], but maybe IOCTL_HAL_GET_DEVICEID [2] will work
for you. You may the code from this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp


HTH

[1]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETUUID.asp
[2]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETDEVICEID.asp



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Hilton wrote:
Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that
Microsoft provided gives 0000-0000-... for the UUID. I thought all
devices now must have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Check out the GetDeviceUniqueID API which is new in Windows Mobile 5. That
article is a bit out of date.
--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Hilton said:
Robert,

I use this code:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp

which works great on everything until the new Sprint PPC6700.

Curious: if it actually does have a UUID, why doesn't it display it on its
System Info screen like all the other Pocket PCs?

Thanks for your post.

Hilton

Robert Levy said:
Exactly what API are you calling?

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Hilton said:
Sergey,

I am using the Microsoft code. It just returns zeroes. Interestingly
the About screen has no UUID, but it has an ESN number. I'd be OK if I
could get some code to get the ESN number.

But I really did thought that after PC 2002, devices were guaranteed to
have a unique Device ID. Anyone from Microsoft like to chime in here.
Was I wrong? Should developers NOT use the Device ID? If not, how
should we protect our software from copying?

Thanks,

Hilton


What code did you try? It seems that OEM didn't provide support for
IOCTL_HAL_GET_UUID [1], but maybe IOCTL_HAL_GET_DEVICEID [2] will work
for you. You may the code from this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp


HTH

[1]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETUUID.asp
[2]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETDEVICEID.asp



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Hilton wrote:
Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that
Microsoft provided gives 0000-0000-... for the UUID. I thought all
devices now must have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Robert,

Many thanks for your reply. I have a few questions:

1. I cannot find a C# version (PInvoke I assume) version of it. Any code
out there?
2. If this is only supported on WM5, how do I know when to call it and when
to call the other method? Do I first check the OS Version or will this call
fail (for example) and then I would fall back on the IOCTL (or vice versa)?
3. On WM5 devices that have a UUID, will this call return the same UUID as
the IOCTL call?

BTW: Q3 I can figure out by testing, but if it's possible to get
answers/code to Q1 and Q2, that would be excellent.

Many thanks, I really appreciate your feedback. I'd be happy to post the
results of my testing once I have the PInvoke call.

Hilton



Robert Levy said:
Check out the GetDeviceUniqueID API which is new in Windows Mobile 5.
That article is a bit out of date.
--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Hilton said:
Robert,

I use this code:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp

which works great on everything until the new Sprint PPC6700.

Curious: if it actually does have a UUID, why doesn't it display it on
its System Info screen like all the other Pocket PCs?

Thanks for your post.

Hilton

Robert Levy said:
Exactly what API are you calling?

--
-Robert Levy
Program Manager, Windows Mobile Developer Experience
http://blogs.msdn.com/windowsmobile

Sergey,

I am using the Microsoft code. It just returns zeroes. Interestingly
the About screen has no UUID, but it has an ESN number. I'd be OK if I
could get some code to get the ESN number.

But I really did thought that after PC 2002, devices were guaranteed to
have a unique Device ID. Anyone from Microsoft like to chime in here.
Was I wrong? Should developers NOT use the Device ID? If not, how
should we protect our software from copying?

Thanks,

Hilton


What code did you try? It seems that OEM didn't provide support for
IOCTL_HAL_GET_UUID [1], but maybe IOCTL_HAL_GET_DEVICEID [2] will work
for you. You may the code from this article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/html/retrievedeviceid.asp


HTH

[1]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETUUID.asp
[2]
http://msdn.microsoft.com/library/en-us/wcehardware5/html/wce50lrfIOCTLHALGETDEVICEID.asp



--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com


Hilton wrote:
Hi,

The Sprint PPC 6700 (apparently) has no UUID and the code that
Microsoft provided gives 0000-0000-... for the UUID. I thought all
devices now must have a unique UUID?!?!?!

Is there a way to get a unique (aka UUID) from these devices?

All feedback very much appreciated - code appreciated even more. :)

Anyone from MSFT with some more info/code?

Thanks,

Hilton
 
Back
Top