Hello
I will explain my use case :
I send to my customers a tools to update licencing on key.
My customers can have Hasp 4 or Hasp HL key to update (with or
without same VendorID)
Example :
- 2 Hasp 4 key with VendorID 1
- 1 Hasp HL key with VendorID 1
- 1 Hasp HL key with VendorID 2
I use Hasp 4 API to detect all Hasp (4 and HL) Key connected and
get all Hasp ID.
So with VendorID and Hasp ID, I can login with Hasp HL API to a
particulary key to update.
If HaspHL login fail, I know that it's not a Hasp HL key and I
use Hasp 4 API to write licencing to the key.
Now, start with Hasp drivers 7.x :
- If you connect keys to the computer and launch my update
tools, It's work.
- If you have keys already connected to the computer, REBOOT
and launch my update tools, It's doen't work anymore. The Hasp
4 API return no one or only one key connected to the computer.
To reproduce, you can do :
- connect 2 or 3 keys on the computer and execute hasp(LOCALHASP_ISHASP,
0, 0, 0,
0,
&p1, &nNbUsb, &p3, &p4)
>>>
nNbUsb = 3
- reboot the computer with key connected and
execute hasp(LOCALHASP_ISHASP,
0, 0, 0,
0,
&p1, &nNbUsb, &p3,
&p4)
>>> nNbUsb = 0 or 1
Getinfo API need more info to use it (ip/port/password) and
don't show Hasp4 key or Hasp HL with 2.16 firmware so I can't
use it.