When I call WLHardwareGetNumberUsbDrives() I always get zero. I'm sure that I have inserted a USB memory stick

<< Click to Display Table of Contents >>

Navigation:  WinLicense > FAQ > Hardware Lock >

When I call WLHardwareGetNumberUsbDrives() I always get zero. I'm sure that I have inserted a USB memory stick

You have to make sure that you have checked the option "Activate USB (drives)" in the Hardware Lock panel. If you don't check that option, WinLicense will not include the code to read USB drives into the protected application.