Get Computer ID

I want a code that get the computer ID
The ID that I want is the no. that appear when you right click
on My Computer is an number about 15 digit I want to get this
number with no "-"
example
22234-344-3434-43434
is
22234344343443434
usin array u can search for "-" and remove it from ur number
You must use Win32 api (kl, adv, reg, ..)
You can see on Win32 group (http://tinyurl.com/cmhb5g) for C or C++ code
Last edited on
I suppose that you are referring to the Windows Product ID? My Windows Vista PC shows 20 digits excluding the dashes.

If so, that value seems to be in the Windows registry. In Vista:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion
->Value Name: ProductID, of type REG_SZ (string).

For XP or 7 could be located elsewhere, or could be the same.
same spot for XP :)
I only want a c++ script to get this code!
Oh, I thought he wanted to perform CPUID. I raced to this topic, hoping someone had told him =[
My problem is that i want create a program that should be registered i only want to get a unique code of the computer for example nokia mobile have imei code
If i get this code the serial of the program wold be code*2/100 ect..
If someone understand me please write .......
No that still doesn't make sense.

What are you trying to do? You want to make a registration code for a program, like proprietary software that you pay for has? Where you have to enter a number, and the software verifies if it's a valid key?

I think you'd need to connect to a webserver to verify the key. Otherwise you'd have to store the key in the program, where it would be easy to get the real key when the program loaded it into memory to compare the two.
PROTIP: key verification is just a checksum on the input, hence why there are keygens.
Topic archived. No new replies allowed.