Thread: Embedded hdd serial number

  1. #1
    Registered User
    Join Date
    Mar 2020
    Posts
    4

    Embedded hdd serial number

    Hi, i'm new member this forum and i need any explanation.i use dev c++ bloodsheed 5.11 and are a "rookie" to programming.
    but question is: how to embedded a serial number hdd in exe.
    thanks you

  2. #2
    Registered User
    Join Date
    Dec 2017
    Posts
    1,626
    but question is: how to embedded a serial number hdd in exe.

    What does that mean?

    Do you want to know how to retrieve the hdd SN?

    Do you want to know how to "embed" the hdd SN in an exe?
    What does "embed" mean?
    Why do you want to do this?
    Maybe there's a better way to do what you want.
    A little inaccuracy saves tons of explanation. - H.H. Munro

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Presumably the OP is trying to emulate 1980's software 'protection' by locking the installation of the software to the hard disk it was installed on.

    This is a stupid idea for several reasons.
    1. Actual paying customers who want to upgrade their machine are suddenly faced with a dog's breakfast. Some will become ex-customers at that point.

    2. Technically minded crackers who what to rip you off will easily circumvent your efforts (and were never going to give you >$0 to begin with). If deemed worthy, they'll then publish the 'how to remove copy protection from foo'.

    3. Non technically minded thieves who were never going to give you >$0 to begin with, will just google "how to remove copy protection from foo" and be off and away without a second thought.

    This kinda worked-sort-of in the 1980's when there wasn't an all-pervasive web that allowed 2 and 3 to find each other.
    Trying to be obscure no longer works.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Registered User
    Join Date
    Mar 2020
    Posts
    4

    Unhappy

    when retrieved hdd serial number, fill a program.exe, for utilization only personal pc ("anti-pirate"):(
    but salem saying is not good idea:(:(
    Last edited by CRISTIANO; 03-18-2020 at 11:30 AM.

  5. #5
    Registered User
    Join Date
    Mar 2020
    Posts
    4

    Lightbulb

    Another way??????

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    Quote Originally Posted by CRISTIANO View Post
    Another way??????
    Another way to make your software unlikable to the general public?

    Or another way to what?

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Consider different revenue alternatives.
    Software as a service - Wikipedia
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Registered User
    Join Date
    Mar 2020
    Posts
    4
    I think, input a password, will be insufficient, then software and password They will be distributed......my program, is a game low cost always that I'll be able to sell..
    i am italian mechanic engineer and to the first impact with c++ and sdl library, very happy for what I've done
    thanks you..for reply....

  9. #9
    Registered User
    Join Date
    May 2009
    Posts
    4,183
    If you do try to continue on this path, I would suggest the Network media access control (MAC) address instead of Hard-drive serial number.
    The old systems tended to support a multiple of ways of which those were two ways. They allowed the user to choose between the two ways.
    The better ones used all the ways and as long as one of them matched allowed the software to run.
    The MAC address is normally on the Motherboard.

    Tim S.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CPU Serial number in C with GCC
    By fopetesl in forum C Programming
    Replies: 9
    Last Post: 02-01-2017, 12:25 PM
  2. how to get serial number of HD?
    By tjc in forum C Programming
    Replies: 1
    Last Post: 11-11-2008, 12:18 AM
  3. HD Serial number
    By wallace.oliveir in forum C Programming
    Replies: 16
    Last Post: 07-07-2005, 05:37 AM
  4. HD Serial number
    By groorj in forum C Programming
    Replies: 2
    Last Post: 05-12-2005, 12:12 AM
  5. HELP - Reading CPU Serial Number
    By Rigoberto Croes in forum C++ Programming
    Replies: 2
    Last Post: 03-22-2002, 06:15 AM

Tags for this Thread