Results 1 to 9 of 9

Thread: HDD Serial number - How?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395

    HDD Serial number - How?

    How can I get the harddrive serial number
    and also make sure it is from the first harddrive?
    (Copy protection)
    Last edited by Bongo; Feb 24th, 2002 at 10:24 AM.

  2. #2
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Not good.

    The hard drive number is SO easy to change. There are lots of utilities and it's the first thing a pirate will try.

    Better to lock to multiple items, like the MAC number of the network card or CPU serial number.

    I've written some routines that fingerprint the CPU, Net card, Video card, Motherboard, BIOS, Hard Drive etc. that you are welcome to - but they are written in vb.net, I'm afraid, and will not work with vb6.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 2001
    Location
    Köln
    Posts
    395
    Thanks and sugar I am still on VB6.

    any other suggestion. BTW the app has not to be
    100% protected (there is no 100%) and the clients I am looking
    are no hackers. The only thing which I will make sure
    there usingit only on n computers where there have a licence.
    and there should be a demo restriction in it.

    but every help is welcome.

  4. #4
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    I think this is what you are after.

  5. #5
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    Hey BrianHawley would it be possible to get the vb.net code youve wrote for logging hardware serials

    Many Thanks

    Carl
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  6. #6
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    A man with nothing to live for has everything to fight for...

  7. #7
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Or take a look at the A program registration scheme link in my signature. It is a little demo app that registers a user based on the HDD serial number. It doesn't really matter if they can discover/change their HDD serial number because my app stores an encrypted value in the registry that needs to match the serial number. There is also a discussion in the thread about multiple things that can be checked if you don't think that just the HDD is good enough.

  8. #8
    Fanatic Member BrianHawley's Avatar
    Join Date
    Aug 2001
    Location
    Saudi Arabia
    Posts
    796
    Originally posted by carlblanchard
    Hey BrianHawley would it be possible to get the vb.net code youve wrote for logging hardware serials

    Many Thanks

    Carl
    http://www.vbforums.com/showthread.p...hreadid=250436

    This is C#, but it should port easily.
    Brian
    (Fighting with the RightToLeft bugs in VS 2005)

  9. #9
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    here's a quick example i knocked up , for the purpose of retrieving the first HD.
    VB Code:
    1. Private Sub Command1_Click()
    2. Dim HD As Object
    3. Dim x As Integer
    4. x = 0
    5. For Each HD In GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").ExecQuery("select * from Win32_LogicalDisk")
    6.     If HD.MediaType = 12 Then '/// make sure we only get hard-drives.
    7.     If x = 0 Then'/// to allow only first to be shown.
    8.         MsgBox HD.Caption & vbCrLf & HD.VolumeSerialNumber
    9.       x = 1
    10.     End If
    11.     End If
    12. Next
    13. End Sub
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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