Hard disk serial number or Ethernet card serial number. 
Author Message
 Hard disk serial number or Ethernet card serial number.
        I am looking for a way to read the hard disk serial number (the one
generated by DOS) or the ethernet card serial number. I want to copy
protect my programs tying them to either or both of this number. Can
anyone help me?

        Another question. Do Intel chips have serial numbers? can they be read
somehow?

Thank you
Desde aqui,... Nomada



Wed, 08 Jul 1998 03:00:00 GMT
 Hard disk serial number or Ethernet card serial number.


Quote:
>    I am looking for a way to read the hard disk serial number (the one
>generated by DOS) or the ethernet card serial number. I want to copy
>protect my programs tying them to either or both of this number. Can
>anyone help me?
>    Another question. Do Intel chips have serial numbers? can they be read
>somehow?
>Thank you
>Desde aqui,... Nomada

Clipper programmers tackled this question/problem in a different way
several years ago.  You ought to be able to find the code in some old
or even current books that are{*filter*} around.
The concept is quite simple though.  An exe file is run from the front
to back in one large chunk, until it comes to the stopping place, i.e.
a , in Fox case, 1 meg exe loads from byte 1 to the end of the
compiled program, where it sees the end of the compiled program.
Simple enough, BUT, notice I said the stopping place, or the end of
the program that is created by the compiler.  
It is possible to open the exe in low level mode and write to the end
of the exe file, say adding a 10 digit serial number.  In order to
read the serial number, allocate another file handle, open the exe
again, in low level read only mode and read the last ten bytes in the
file.
I did this on one program but the company finally ponied up and bought
the code so I dropped the serial number part of the program.
Hope this points you to a more productive line of thought.
"Don't reinvent the wheel, unless you are being by the hour to do
exactly that"
John.


Thu, 09 Jul 1998 03:00:00 GMT
 Hard disk serial number or Ethernet card serial number.


Quote:

>Clipper programmers tackled this question/problem in a different way
>several years ago.  You ought to be able to find the code in some old
>or even current books that are{*filter*} around.
>The concept is quite simple though.  An exe file is run from the front
>to back in one large chunk, until it comes to the stopping place, i.e.
>a , in Fox case, 1 meg exe loads from byte 1 to the end of the
>compiled program, where it sees the end of the compiled program.
>Simple enough, BUT, notice I said the stopping place, or the end of
>the program that is created by the compiler.  
>It is possible to open the exe in low level mode and write to the end
>of the exe file, say adding a 10 digit serial number.  In order to
>read the serial number, allocate another file handle, open the exe
>again, in low level read only mode and read the last ten bytes in the
>file.
>I did this on one program but the company finally ponied up and bought
>the code so I dropped the serial number part of the program.
>Hope this points you to a more productive line of thought.
>"Don't reinvent the wheel, unless you are being by the hour to do
>exactly that"
>John.

Hi,

I don't see how this accomplishes what the questioner asked for.  He wanted to
restrict operation to a particular computer by tying some unique identifer
such as a disk, nic or cpu serial number to the program.

Your approach would allow you to check the serial number of the program; but
what would you check it against?   How would the serial number at the end of
the program restrict its use to a single machine and/or prevent the user from
distributing copies?

Ed




Fri, 10 Jul 1998 03:00:00 GMT
 Hard disk serial number or Ethernet card serial number.
Hi,


Quote:
>I am looking for a way to read the hard disk serial number (the one
>generated by DOS) or the ethernet card serial number.

I had the same problem some years ago with FoxBase+ and MS-DOS 5.00. My
solution was extremely primitive. I used "run vol > file" and read some
bytes from the end of file... ;)

With best regards,

Jyri Tirmaste



Sun, 12 Jul 1998 03:00:00 GMT
 Hard disk serial number or Ethernet card serial number.

Quote:

>Hi,


>>I am looking for a way to read the hard disk serial number (the one
>>generated by DOS) or the ethernet card serial number.

Don't know abt the hard disk serial number but Novell (at least 3.11 / 3.12) will
put an Ethernet Serial # into an environment variable when the system is logged in;
GETENV will then read this like any other DOS environment variable.  I don't recall
the exact syntax but it's in the docs.  I've used it in the system login script,
probably works from user login script as well.

You didn't say what kind of Network so this may not be useful.  But I hope it helps,
naturally!

Marc Linn



Thu, 16 Jul 1998 03:00:00 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. Hard Disk Serial Number

2. Obtaining Hard Disk Serial Number

3. API for the hard disk label and serial number

4. Volume serial number of a hard disk

5. How to get Secure Digital card serial number?

6. How do I read the disk Serial Number

7. Provision Serial number and Control Number!

8. Serial Number and Control Numbers of Progress9.1B

9. FPW26: Getting a disk's serial number

10. Disk Drive Serial Number

11. DISK SERIAL NUMBER

12. Serial Number and Control Numbers of progress 9.1B


 
Powered by phpBB® Forum Software