Summary
Below is a way to check a certificate license file for the "BORROW" keyword on a FEATURE line
The variable maxborrowhours in structure * borrow_feat_Info.c
#define FEATURE "f1"
VENDORCODE code;
LM_HANDLE *lm_job;
static void init(struct flexinit_property_handle **);
static void cleanup(struct flexinit_property_handle *);
void
vendor_daemon_info(LM_HANDLE *job, char *feature)
{
CONFIG *conf, *c = 0;
LM_VD_GENERIC_INFO gi;
LM_VD_FEATURE_INFO fi;
int first = 1;
for (conf = lc_next_conf(job, feature, &c); conf;
conf = lc_next_conf(job, feature, &c))
{
fi.feat = conf;
if (lc_get_attr(job, LM_A_VD_FEATURE_INFO, (short *)&fi))
{
lc_perror(job, "LM_A_VD_FEATURE_INFO");
}
else
{
printf("\nfeature %s\n", conf->feature);
printf("code %s\n", conf->code);
printf("rev %d\n", fi.rev);
printf("borrowmaxhours %d\n", fi.maxborrowhours);
}
}
}
LM_VD_FEATURE_INFOwill update the useful information. It updates for how long the feature can be borrowed.- The variable only gets populated for borrowed features.
- Variable maxborrowhours is directly linked to BORROW keyword in the
FEATUREline. The variable will only be populated ifBORROWkeyword has been mentioned in the FEATURE line for that feature. Otherwise, the value will be 0. - For exp: -
- (With BORROW) For
INCREMENTline :FEATURE f1 flexera 1.0 permanent 4BORROW SIGN=the value of maxborrowhourswill be 168, for feature f1 . - (Without BORROW) For
INCREMENTline : FEATURE f1 flexera 1.0 permanent 4 SIGN=the value of maxborrowhourswill be 0, for feature f1.
- (With BORROW) For
- Usage-Your application can show/hide a borrow option based on the license feature can be borrowed or not. If it can be borrowed, then this is where you can let the client set the borrow information.
Was this helpful?
Related Articles
How to use Flexible API to determine if a FEATURE supports BORROW 4Number of Views How to Set the Maximum Licenses for a Single Feature a User or Group Can Use? 9Number of Views How Can a Client Program Determine That a Feature Was Checked Out From a FlexID Dongle? 7Number of Views Problem with Borrow early return when Hyphen is used in FEATURE name and borrow is initiated with lc_borrow 8Number of Views How to Determine if a Property Has Been Set or Not in a Condition for Suite/Advanced UI Projects 3Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
Language changed
successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago