Recently sortedCodeIn the msdn blog, I found that a cool person sorted out a class with comprehensive functions and explained in detail how to obtain the correct device ID.
How do I get the "right" device ID?
A simple device ID class
In addition, Microsoft. NET Compact framework quickstarts tutorial also provides a simple example. It also calls the Windows CE. Net API function.Kerneliocontrol.
Get the device ID
Windows Mobile 5.0 provides a new API FunctionGetdeviceuniqueidIt is used to obtain the device ID of the Pocket PC and smartphone. Windows Mobile Team blogArticleTo introduce its origins and explain the previousKerneliocontrolFunction to obtain the device ID.
Getdeviceuniqueid
With the unique device ID, we can implement a better smart device software authorization mechanism. We can also use it to restrict the smart device client software's access to background services, this improves system security.