How I can read Serial number from a Windows mobile and WinCE mobile device using C#?
A:
consultutah
2009-06-26 22:29:54
Interesting. I take that article to imply that some devices may not have a unique id. It seems to be something that "can be used by OEMs who need unique identifications". Also, the article was a bit old. Do you know if that IOCTL is still valid in later versions of Windows CE, or if maybe there's a better method in later versions?
John Saunders
2009-06-26 22:46:34
As far as I know there is nothing built-in. You must call native methods to get it - I have been away from the CompactFramework for a while though...
consultutah
2009-06-26 22:52:29
Right. I meant are there better native methods.
John Saunders
2009-06-26 23:18:02
+2
A:
You really shouldn't be using the old KernelIoControl method.
You should use the newer GetDeviceUniqueID API. Here is a blog entry on why to use it and how to use it from C#.
Shane Powell
2009-06-30 06:55:47