如何获取用于复制保护的主板或HDD序列号? [英] How do i Get motherboard or HDD Serial Number for Copy Protection ?

查看:95
本文介绍了如何获取用于复制保护的主板或HDD序列号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好吧:)

i希望保护我的应用程序(用C#写)免于复制

i需要一个完美的方法来获取主板或硬盘序列号...

我想询问有关最佳复制保护方式的其他建议吗?



注意:我搜索但是所有的方式我发现无法使用.Net 4.0



非常感谢帮助:)

hi everybody :)
i want to protect my app (Writen by C#) from copying
i need a perfect way to get motherboard or HDD Serial Number ...
and i want to ask about other suggestions to best copy protection ways ??

Note : i've search but all the ways that i found didn't work with the .Net 4.0

Thanks a lot for helping :)

推荐答案

复制保护?没有这样的事情。说真的,公司已经在这个问题上投入了数十亿美元,但仍然没有找到一种完美的方式来保护他们的软件。



恕我直言,你们浪费你的时间。



但是,没有可靠的方法来获取序列号。任何规范中都没有任何内容表明设备上必须存在任何设备的序列号,并且没有标准存在以一致的方式公开序列号。



你最好的选择是WMI和最好的家,但你会失望的。再说一遍,没有什么可以说序列号必须暴露给WMI,所以在某些机器上,你什么也得不到。谷歌的Win32_BIOS和Win32_SystemEnclosure用于系统序列号,Win32_DiskDrive用于驱动器序列号。
Copy protection? There's no such thing. Seriously, companies have been throwing BILLIONS Of dollars at the problem and still haven't come up with a "perfect" way to protect their software.

IMHO, you're wasting your time.

But, there is no reliable way to get a serial number. There is nothing in any specification that says a serial number of any device must exist on the device at all, and no standard exists that exposes serial numbers in a consistent manner.

Your best option is WMI and home for the best, but you're going to be disappointed. Again, there is nothing that says a serial number must be exposed to WMI so on some machines, you'll get nothing. Google for "Win32_BIOS" and "Win32_SystemEnclosure" for a system serial number and for "Win32_DiskDrive" for drive serial numbers.


这篇关于如何获取用于复制保护的主板或HDD序列号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆