Results 1 to 2 of 2

Thread: Get vendor id and product id of USB device on Windows

  1. #1
    Join Date
    Oct 2015
    Posts
    50
    Thanks
    4
    Qt products
    Qt5
    Platforms
    Windows

    Default Get vendor id and product id of USB device on Windows

    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?

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Get vendor id and product id of USB device on Windows

    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

Similar Threads

  1. Replies: 4
    Last Post: 29th February 2012, 21:46
  2. How to debug code on Windows Ce 5.0 device?
    By hakanaktan in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 12th August 2010, 13:08
  3. Replies: 34
    Last Post: 1st June 2010, 10:59
  4. Get the product/device name using QT library?
    By predatorz in forum Newbie
    Replies: 3
    Last Post: 14th January 2010, 03:53
  5. Vendor and Model Name from USB Devices
    By NoRulez in forum Qt Programming
    Replies: 6
    Last Post: 20th July 2009, 09:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.