Get Computer ID

Aug 27, 2009 at 11:04am
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
Aug 27, 2009 at 11:37am
usin array u can search for "-" and remove it from ur number
Aug 27, 2009 at 2:58pm
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 Aug 27, 2009 at 2:59pm
Aug 27, 2009 at 3:13pm
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.
Aug 28, 2009 at 4:01am
same spot for XP :)
Sep 3, 2009 at 5:13pm
I only want a c++ script to get this code!
Sep 3, 2009 at 5:46pm
Sep 3, 2009 at 7:44pm
Oh, I thought he wanted to perform CPUID. I raced to this topic, hoping someone had told him =[
Sep 12, 2009 at 8:42am
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 .......
Sep 12, 2009 at 9:36am
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.
Sep 12, 2009 at 9:48am
PROTIP: key verification is just a checksum on the input, hence why there are keygens.
Topic archived. No new replies allowed.