Click here to Skip to main content
15,895,843 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi everybody :)
i want to protect my app (Writen by C#) from copying
i need a perfect way to get motherboard or HDD Serial Number ...
and i want to ask about other suggestions to best copy protection ways ??

Note : i've search but all the ways that i found didn't work with the .Net 4.0

Thanks a lot for helping :)
Posted

1 solution

Copy protection? There's no such thing. Seriously, companies have been throwing BILLIONS Of dollars at the problem and still haven't come up with a "perfect" way to protect their software.

IMHO, you're wasting your time.

But, there is no reliable way to get a serial number. There is nothing in any specification that says a serial number of any device must exist on the device at all, and no standard exists that exposes serial numbers in a consistent manner.

Your best option is WMI and home for the best, but you're going to be disappointed. Again, there is nothing that says a serial number must be exposed to WMI so on some machines, you'll get nothing. Google for "Win32_BIOS" and "Win32_SystemEnclosure" for a system serial number and for "Win32_DiskDrive" for drive serial numbers.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 1-Aug-13 19:52pm    
Agreed, a 5.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900