Hi Anthony,
Thank you for raising the concern.
The error message HASP_INV_HND for hasp.getSessionInfo() suggests that the session handle was not assigned login session.
As below :
Chasp hasp(feature);
hasp.login(vendorCode);
haspStatus Status = hasp.getSessionInfo(format, info);
The handle object hasp is followed by login() method to generate the session.
Also, please clarify whether the Feature and Product ID both are "102" as presented in the template.
Best Regards,
Parth Kaushik