如何检索OS或CPU的序列号以进行复制保护? [英] How to retrieve serial number of OS or CPU for copy protection?

查看:102
本文介绍了如何检索OS或CPU的序列号以进行复制保护?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了防止软件在没有许可证的情况下被复制,我希望

使用类似于密钥的东西,它只适用于当前系统。对于CPU或当前操作系统,

序列号将是适当的
。但是,我不知道如何检索这些信息。


你能帮忙吗?

克劳斯

解决方案

Klaus,


获取这些信息并不困难。

http://msdn.microsoft.com /library/de...classtopic.asp


这是收藏品的所有藏品。


你可以使用的处理器ID在硬件中找到 - >板 - >处理器 - >

processorID。


但请注意,不是每个处理器都有ID。


我希望这会有所帮助吗?


Cor

为了防止软件在没有许可的情况下被复制,我希望
喜欢使用像键一样,只适合当前系统。 CPU或当前操作系统的序列号是否合适。但是,我不知道如何检索这些信息。

你能帮忙吗?
Klaus



< blockquote>

" Jakob Christensen" < JC ******* @ pension.dk> schrieb im Newsbeitrag

新闻:85 ********************************** @ microsof t.com ...

您可以使用WMI获取此信息。例如。要获得操作系统的序列号
,您将使用Win32_OperatingSystem WMI类。您可以使用.net的System.Management命名空间使用
WMI
如果您需要有关如何使用.net

的WMI的更多信息,请告诉我。

:-)

Jakob,


这似乎就像产品版本号。在用户中,它可能不是唯一的
。我正在寻找一个序列号,每个系统都是唯一的
,就像操作系统的CD键一样。


祝你好运,

Klaus


没有类似的东西。 NIC的MAC地址应该是唯一的,但不是每个人都有网卡,有些卡允许你更改他们的MAC

地址。


Jerry


" Klaus Bonadt" <博**** @ hotmail.com>在消息中写道

news:ek ************** @ TK2MSFTNGP11.phx.gbl ...


" ; Jakob Christensen < JC ******* @ pension.dk> schrieb im Newsbeitrag
新闻:85 ********************************** @ microsof t.com。 ..

您可以使用WMI获取此信息。例如。要获取

操作系统的序列号


,您将使用Win32_OperatingSystem WMI类。您可以使用<。blockquote>
WMI

使用.net的System.Management命名空间
如果您需要更多有关如何使用的信息,请告诉我们WMI来自.net


:-)
雅各布,

这似乎就像产品版本号。用户可能不是唯一的。我正在寻找一个序列号,这对于每个系统来说都是独一无二的,就像操作系统的CD键一样。

祝你好运,
Klaus



In order to protect software from being copied without licence, I would like
to use something like a key, which fits only to the current system. The
serial number of the CPU or the current operating system would be
appropriate. However, I do not know how to retrieve the information.

Could you help?
Klaus

解决方案

Klaus,

To get that information is not difficult.

http://msdn.microsoft.com/library/de...classtopic.asp

It are all collections which holds collections.

The processorID you can find in Hardware -> boards -> processor ->
processorID.

However, be aware that not every processor has an ID.

I hope this helps?

Cor

In order to protect software from being copied without licence, I would like to use something like a key, which fits only to the current system. The
serial number of the CPU or the current operating system would be
appropriate. However, I do not know how to retrieve the information.

Could you help?
Klaus




"Jakob Christensen" <jc*******@pension.dk> schrieb im Newsbeitrag
news:85**********************************@microsof t.com...

You can obtain this information using WMI. E.g. to get the serial number of the OS, you would use the Win32_OperatingSystem WMI class. You can use WMI using the System.Management namespace of .net

Let me know if you need some more information on how to use WMI from .net


:-)

Jakob,

This seems to be something like a product version number. It is probably not
unique among users. I am looking for a serial number, which is unique for
each system, something like the CD key of the operating system.

Best regards,
Klaus


There is nothing like that. A NIC''s MAC address should be unique but not
everybody has a network card and some cards allow you to change their MAC
address.

Jerry

"Klaus Bonadt" <Bo****@hotmail.com> wrote in message
news:ek**************@TK2MSFTNGP11.phx.gbl...


"Jakob Christensen" <jc*******@pension.dk> schrieb im Newsbeitrag
news:85**********************************@microsof t.com...

You can obtain this information using WMI. E.g. to get the serial number


of

the OS, you would use the Win32_OperatingSystem WMI class. You can use


WMI

using the System.Management namespace of .net

Let me know if you need some more information on how to use WMI from .net


:-)

Jakob,

This seems to be something like a product version number. It is probably
not
unique among users. I am looking for a serial number, which is unique for
each system, something like the CD key of the operating system.

Best regards,
Klaus



这篇关于如何检索OS或CPU的序列号以进行复制保护?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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