Chinaunix首页 | 论坛 | 博客
  • 博客访问: 210939
  • 博文数量: 43
  • 博客积分: 3010
  • 博客等级: 中校
  • 技术积分: 660
  • 用 户 组: 普通用户
  • 注册时间: 2007-10-11 11:49
文章分类

全部博文(43)

文章存档

2009年(39)

2008年(4)

我的朋友

分类:

2009-06-26 12:45:29

转载自黎波博客文章http://www.cnblogs.com/upto/arch ... DeviceUniqueID.html

最近整理获取 Pocket PC 设备 ID 的代码,发现 MSDN Blog 有个牛人整理了一个比较功能比较全面的类,并详细解释了如何获取到正确的设备 ID。
How do I get the "right" Device ID?
A Simple Device ID Class

另外,Microsoft .NET Compact Framework QuickStarts Tutorial 中也有一个简单的例子,同样是通过调用 Windows CE .NET 的 API 函数 KernelIoControl 获取的。
Get the Device ID

Windows Mobile 5.0 提供了一个新的 API 函数 GetDeviceUniqueID 专门用来获取设备 ID,它可以获取 Pocket PC 和 Smartphone 的设备 ID。Windows Mobile Team Blog 专门写了一篇文章来介绍它的由来,解释了以前用 KernelIoControl 函数获取设备 ID 的一些问题。
GetDeviceUniqueID

有了设备的唯一编号,我们就可以实现更好的智能设备软件的授权机制,还可以利用它来限制智能设备客户端软件访问后台服务的权限,从而提高系统的安全性。
阅读(341) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~