Hardware Info for Copy Protection

Hi!
I'm looking for informaiton on getting machine-dependent information (like processor ID, network card MAC, hdd serial, windows installation....)

a) how to get this info
b) what else could be used
c) no flames....


TIA
Peter
LVL 7
peterchen092700Asked:
Who is Participating?
 
ZoppoCommented:
Hi peterchen,

here's a link to free code/dll which determines NIC-address and hdd serial:
http://www.naughter.com/pjsecure.html

here's a link to a PAQ about how to retrieve CPU ID if exists:
http://www.experts-exchange.com/jsp/qShow.jsp?ta=cplusprog&qid=20160242 (you'll have to pay 20 points to look at it, but I think it's worth that)

I'm not sure what you mean with 'windows installation' ... if you mean which version of windows is running you can use code at:
http://www.naughter.com/dtwinver.html

hope that helps,

ZOPPO
0
 
ZoppoCommented:
Further, in registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion you can find a value 'ProductId' which seems to be used to store a serial number of the installed windows.
0
 
jkrCommented:
Regarding the CPUID PAQ - the code listing there is for Linux, and keep in mind that '__asm { CPUID};' probably is a privileged instruction...
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
ShaunWildeCommented:
have alook at windows management instrumentation WMI - I feel have already said this today - have you posted something similar today on another board?
0
 
ShaunWildeCommented:
0
 
ShaunWildeCommented:
this is a sample http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/hh/wmisdk/us_approg_7cxa.asp

you will probably have to use IWebmServices to get the info you want

0
 
peterchen092700Author Commented:
Great! Thanks for the fast feedback, I'm almost happy; only one thing:

are there other things I could test to generate an machine+installation specific code?

Peter
0
 
ShaunWildeCommented:
UUIDCreate and UUIDCreateSequential if you have a newtwork card
0
 
peterchen092700Author Commented:
>> UUIDCreate and UUIDCreateSequential
yep, thsi is pretty much the code that Zoppo suggested.

some points for you:
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=winprog&qid=20162719

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.