Hi Vasile,
Hope you are doing well.
My regrets for the delay in response.
I checked the shared implementation on my side and found it working as expected.
The "<attribute name=\"license\" />" tag should return us 'counter_fix' and 'counter_var' tags in output.
Here, 'counter_fix' would contain the original number of executions counts and the 'counter_var' will give the number of used/decreased counts.
Hence using these outcomes, we can retrieve the numbers of active counts by subtracting 'counter_var' from 'counter_fix' .
For example:
<?xml version="1.0" encoding="UTF-8" ?>
<hasp_info>
<feature license_type="executions" counter_fix="20" counter_var="6" />
</hasp_info>
In this outcome, counter_fix comes as 20 and counter_var as 6 in response to hasp.getinfo(). Thus, the available active counts would be 14.
Kindly share if we have any further concern.
Thanks & regards,
Parth Kaushik