The LMX_Checkin function will return the licenses for a single checked out in feature or all checked out in features.
Prototype
Code Block | ||
---|---|---|
| ||
LMX_STATUS LMX_Checkin ( LMX_HANDLE LmxHandle, const char *szFeatureName, int nCount ); |
...
Using LMX_ALL_FEATURES with borrow early return is not supported. Instead, check in the features individually.
Example
The following example returns a license for feature "f2" to a license server.
Code Block | ||
---|---|---|
| ||
#include <lmx.h> #include <stdio.h> LMX_HANDLE h; int main() { exit_on_error(LMX_Init(&h)); exit_on_error(LMX_Checkin(h, "f2", 1)); return 0; } |