PDA

View Full Version : Get vendor id and product id of USB device on Windows



mikrocat
30th March 2016, 06:50
Hi,

I want a Copy protection for my software. It does not need to be very hard to get but it should not be too easy to copy the software.

I thought of a USB device which needs to be used with software. So everytime i open the Software or install it, I want to check if it is used with this certain USB device.

How can I get the certain IDs of this USB device?

ChrisW67
30th March 2016, 21:44
Options For USB:

Use the Windows API directly
Use libusb to make the solution more portable
There is a QtUsb library out there but it might be Qt4 only or abandoned. Could be useful for ideas anyway

Other options:

Rather than using a dongle just use a partial key verification mechanism and embed a blacklist for "stolen" keys.
Forget about playing whack-a-mole with hackers determined on free copies, do not protect it, and let good software sell itself (or not).
Open source it :)