all groups > dotnet compact framework > september 2005 >
You're in the

dotnet compact framework

group:

Unique identifier of a WCE terminal


Unique identifier of a WCE terminal Romain TAILLANDIER
9/21/2005 12:00:00 AM
dotnet compact framework:
Hi group

I need to get a unique identifier of a terminal Win CE. Such as a MAC
adress.
I have try to use the KernelIoControl (C++ native) to get an ID but in my
actual plateform it is the same for all machins.

Have you got idea about that ?

thank you
ROM

Re: Unique identifier of a WCE terminal Thomas Hall
9/21/2005 7:30:43 AM
Here's a good place to start:
http://samples.gotdotnet.com/quickstart/CompactFramework/doc/deviceid.aspx

The code you'll find at the link will demonstrate how you can retrieve
the Device ID using the KernelIoControl API.

I have several hundred devices installed and I use the Device ID in
byte format to uniquely identify each device. My production code is a
slight variation of the code you'll find at GotDotNet.

Regards,
Thomas Hall
Re: Unique identifier of a WCE terminal Thomas Hall
9/21/2005 7:44:33 AM
Disregard my previous post. I didn't see that you had tried
KernelIoControl. The only downside to using the MAC address is the
possibility of the NIC being replaced. Some OEMs embed the device
serial number which you may have access to. If your device has an SDK
available, check the docs for something your OEM may have implemented
for a unique ID.

Regards,
Thomas Hall
Re: Unique identifier of a WCE terminal Chris Tacke, eMVP
9/21/2005 10:29:35 AM
Check with the OEM. There's nothing that states that a unique ID has to be
implemented on a CE device, so it's possible that your device doesn't have
one (though if it's got an ethernet chip, the MAC would be available).

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


[quoted text, click to view]

AddThis Social Bookmark Button