How can I read the serial number from a Windows mobile device and a WinCE mobile device using C #?
You really should not use the old KernelIoControl method.
You must use the new GetDeviceUniqueID API. Here 's a blog post about why using it and how to use it with C #.
Obtaining a Windows CE Device ID Using the Microsoft .NET Compact Framework