如何使用 C# 从移动设备读取序列号?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1051404/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 07:03:30  来源:igfitidea点击:

How to read Serial number from mobile device using C#?

c#windows-mobilemobilewindows-ce

提问by Gold

How I can read Serial number from a Windows mobile and WinCE mobile device using C#?

如何使用 C# 从 Windows mobile 和 WinCE 移动设备读取序列号?

回答by Shane Powell

You really shouldn't be using the old KernelIoControl method.

你真的不应该使用旧的 KernelIoControl 方法。

You should use the newer GetDeviceUniqueIDAPI. Hereis a blog entry on why to use it and how to use it from C#.

您应该使用较新的GetDeviceUniqueIDAPI。 是一篇关于为什么使用它以及如何从 C# 使用它的博客条目。