|
-
Dec 8th, 2007, 01:58 PM
#1
Thread Starter
Addicted Member
[RESOLVED] [2005] Which information is useful for registration key?
Hi;
I have written a software and I want to put a registration key checker... Which information is better to be taken for generating registration key? For example user name of windows is the info that I use and program generates a code from user name. But I think it is not good when user formats the hard disc... Are there better sources? (Like processor serial number, hardware serial number etc...)
Thanks for any kind of help...
Last edited by Genom; Dec 8th, 2007 at 02:15 PM.
Dim Me As Coder
-
Dec 8th, 2007, 02:46 PM
#2
Thread Starter
Addicted Member
Re: [2005] Which information is useful for registration key?
I have found what I was looking for:
vb Code:
Imports System.Management
Dim physicalMedia As New Management.ManagementClass("Win32_PhysicalMedia")
For Each physicalMedium As Management.ManagementObject In physicalMedia.GetInstances()
MessageBox.Show("Serial Number: " & CStr(physicalMedium("SerialNumber")))
Next physicalMedium
I thought about this code what is it meaning etc... Now I am facing this situation (sorry about my english):
1- This code gives 3 serial numbers BUT 2 of them are empty ("") and one of them has the serial number. 384213....
2- I have 2 hard discs ( and a usb memory) so I need the serial number of the hard disc where windows is installed. Luckily the result which I get the serial number is the serial number of the hdd of windows. But it may not be like this in another pc so I have to be sure that I am taking to serial number of the hdd of windows and NOT the serial number of other hdd. How can I be?
-
Dec 8th, 2007, 04:54 PM
#3
Re: [2005] Which information is useful for registration key?
you could use the users name (not their username)
-
Dec 8th, 2007, 05:01 PM
#4
Thread Starter
Addicted Member
Re: [2005] Which information is useful for registration key?
sorry what do you mean with that? Actually I want an information from OEM. Hardware... So that after format user can still use this registration key. Is it possible to take a serial number of processor?
-
Dec 8th, 2007, 05:06 PM
#5
Re: [2005] Which information is useful for registration key?
-
Dec 8th, 2007, 05:08 PM
#6
Thread Starter
Addicted Member
Re: [2005] Which information is useful for registration key?
thanks a lot Im looking...
-
Dec 8th, 2007, 06:05 PM
#7
Re: [RESOLVED] [2005] Which information is useful for registration key?
how did it work for you?
i've just tried it but i can't get the cpu ID
-
Dec 8th, 2007, 06:09 PM
#8
Re: [RESOLVED] [2005] Which information is useful for registration key?
ignore that last comment. got it now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|