>I need to make sure our software is not copied to multiple hard disks. I will be writing away an encrypted number to be calculated from a computer's hard disk serial and or processor serial.
>
>Is there any API or DLL/FLL that can do that. I have tried GetVolumeInfo() but a volume serial can be changed or Ghosted.
>
>Any ideas about how to uniquely identify a machine?
>
>Bernard
Hi Bernard,
Check out File 1331 Serialno - Function to return serialno from harddrive. in Files section/WIN32API & others APIs
The solutions which rely on serial numbers may not be very reliable or convenient for users. What if they upgrade the HDD or processor? The reliable solution is to use the dongle (however it might be not very convenient for users).
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison