基于软件/硬件独特识别PC [英] Uniquely identify PC based on software/hardware

查看:199
本文介绍了基于软件/硬件独特识别PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于生成每个PC许可证密钥的要求,我需要一些代码,这将在任何PC上返回稳定和(近)唯一的密钥。它不会保证唯一,但关闭。 需要相当稳定,因此一个给定的PC总是产生相同的结果,除非硬件实质上改变。

For a requirement to generate per-PC license keys, I need some code which will return a stable and (near) unique key on any PC. It doesn't have to be guaranteed unique, but close. It does need to be reasonably stable though, so that a given PC always generates the same result unless the hardware is substantially changed.

对于Windows应用程序,使用wxWidgets但Win32或其他选项是很好的。

This is for a Windows application, using wxWidgets but a Win32 or other option is fine.

我在考虑MAC地址,但什么关于笔记本电脑可以常规禁用网卡的电源 - 保存模式?我遇到了 GetCurrentHwProfile ,但它看起来不像我一样

I was thinking about MAC address but what about laptops which can routinely disable the network card in power-saving mode? I came across GetCurrentHwProfile but it doesn't quite look like what I want?

推荐答案

我只是去使用MAC地址方法;当无线/ LAN卡关闭时,它们仍显示在网络连接中。因此,您仍然可以获取MAC。

I would just go with the MAC address method; when the wireless / LAN cards are turned off they still show up in Network Connections. You should therefore still be able to get the MAC.

请考虑这一点:任何时候,您都可以与您的网络服务器或编目这些ID的任何内容联系,

Consider this: Any time you'd be able to contact your webserver or whatever you're cataloging these IDs with, the user is going to have to have some form of network card available.

您可以使用CPU序列号客户的计算机支持它。

Oh, and you might be able to use CPU serial number of the customer's computer supports it.

这篇关于基于软件/硬件独特识别PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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