
CSteineb.20180606060057 asked a question.
Hi again!
Still no one could answer my question. So I try once again.
Is there a possibility in C Code to find out where a license has been checked out?
status = lc_checkout(job, feature, version, num_licenses, flag, key, dup_group)config = lc_auth_data(job, feature)Now is there a way to use f.ex. config to extract information where the feature has been checked out (server, local license file etc.)?
Thanks for helping
Regards
Christian
@chris58 , you may want to try a sample on something like this:
char ** cp;
CONFIG * conf;
conf = lc_get_config(lm_job, feature);
lic_pos = conf->lf;
count = 0;
lc_get_attr(lm_job, LM_A_LF_LIST, (short *)&cp);
if (*cp)
{
while (*cp)
{
if (count == lic_pos)
{
printf("The current feature is checked out from -->%s\n",(short *)*cp);break;
}
count++;
*cp++;
}
}