Results 1 to 8 of 8

Thread: [RESOLVED] [2005] Which information is useful for registration key?

  1. #1

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    Resolved [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

  2. #2

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    Re: [2005] Which information is useful for registration key?

    I have found what I was looking for:

    vb Code:
    1. Imports System.Management
    2.  
    3.         Dim physicalMedia As New Management.ManagementClass("Win32_PhysicalMedia")
    4.  
    5.         For Each physicalMedium As Management.ManagementObject In physicalMedia.GetInstances()
    6.             MessageBox.Show("Serial Number: " & CStr(physicalMedium("SerialNumber")))
    7.         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?
    Dim Me As Coder

  3. #3
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: [2005] Which information is useful for registration key?

    you could use the users name (not their username)

  4. #4

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    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?
    Dim Me As Coder

  5. #5
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    Re: [2005] Which information is useful for registration key?


  6. #6

    Thread Starter
    Addicted Member Genom's Avatar
    Join Date
    May 2006
    Posts
    186

    Re: [2005] Which information is useful for registration key?

    thanks a lot Im looking...
    Dim Me As Coder

  7. #7
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    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

  8. #8
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,424

    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
  •  



Click Here to Expand Forum to Full Width