Archived

This topic is now archived and is closed to further replies.

Looking for value that differ from computer to another for a copy protection

This topic is 5588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

simple. i wanna do an authorization code type of copy protection. 1. user activate key - generator that create one according to the computer. 2. i give him the authorization code which is some interpulation of the code 3. game see if the computer match the authorization code. now, the one thing that is missing is how to create the key. i thought of taking the hard drive serial or smthing like that, smting that wont change alot. problem is, i dont know any C++/Win32api command that reads the hard drive serial, its size or anything like that. any suggestions? video card serial? smting? Gil

Share this post


Link to post
Share on other sites
Ignoring my opinions on copy protection...

Most times I''ve seen copy protection along the idea you''re thinking, they look for an ethernet card. Every ethernet device has a unique id#.

I don''t have a clue how to get that from Win32.


---- --- -- -
Blue programmer needs food badly. Blue programmer is about to die!

Share this post


Link to post
Share on other sites
i know my idea is not original, thats why i''m asking
how winXP do it.

prob is that i''m planning to write a game for ppl with
home computers, 80% dont have ethernet card...

any other suggestions?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You could generate a GUID which is in part based off of the network card''s device id (although a network card is not required). Check out CoCreateGuid.

Share this post


Link to post
Share on other sites
quote:
Original post by Gilzu
simple.
i wanna do an authorization code type of copy protection.

1. user activate key - generator that create one according
to the computer.
2. i give him the authorization code which is some interpulation
of the code
3. game see if the computer match the authorization code.

now, the one thing that is missing is how to create the key.
i thought of taking the hard drive serial or smthing like that,
smting that wont change alot.

problem is, i dont know any C++/Win32api command that reads
the hard drive serial, its size or anything like that.

any suggestions?
video card serial? smting?

Gil



The most common way of identifying against a piece of hardware is actually to get the processor ID #. That''s how most big software I''ve seen( which don''t require a dungle key ) do it.





"DaHjajmajQa''jajHeghmeH!"

Cyberdrek
danielc@iquebec.com
Founder
Laval Linux

/(bb|[^b]{2})/ that is the Question -- ThinkGeek.com
Hash Bang Slash bin Slash Bash -- #!/bin/bash

Share this post


Link to post
Share on other sites
Yeah, the CPU should have a unique id or serial number of some kind. That network card thing is called a MAC address - look it up on Google or MSDN - you can probably access it through WinSock or the Win32 API. Problem is, that limits you to comps with network cards in them.

Share this post


Link to post
Share on other sites
Also you could make good use of the volume number of the hdd.
This is something that really everybody has.

Suggestion: Ask the user for his name and use the name inside the key-generation-algorithm so that both the hardware of the user and the user''s name (or at least parts of it) are bound to your copy-protection-key ...

Yours,

Indeterminatus

--si tacuisses, philosophus mansisses--

Share this post


Link to post
Share on other sites