The LMX_Admin_Reserve function will use a token to reserve one or more licenses for a specified time.
Prototype
Code Block | ||
---|---|---|
| ||
LMX_STATUS LMX_Admin_Reserve |
...
( LMX_HANDLE LmxHandle, |
...
const char *szFeatureName, |
...
int nVerMajor, int nVerMinor, int nCount, int nReservationTime, const char *szReservationToken ); |
Parameters
LmxHandle
[in/out] LM-X handle.
...
On failure, this function returns an error code in the format described in Return SOAP API return codes. Note that the error code returned reflects only the last license file tested or license server contacted.
To get a complete error description, use the API function LMX_GetErrorMessage().
See LMX_Checkout for additional information about return values, which also apply to this function.
...
The reservation token is a unique string you specify, and can have a length up to LMX_MAX_SHORT_STRING_LENGTH. The token is used to acquire the reservation, which later can be consumed (checked out) using the same token.
See LMX_Checkout for additional remarks, which also apply to this function.