The LMX_Admin_UploadLicense function uploads a license file to the server.
Prototype
LMX_STATUS LMX_Admin_UploadLicense ( LMX_HANDLE LmxHandle, const char *szLicenseContent );
Parameters
LmxHandle
[in/out] LM-X handle.
szLicenseContent
[in] License file content. The maximum length of the license file content can be up to LMX_MAX_LONG_STRING_LENGTH.
Return values
On success, this function returns the status code LMX_SUCCESS.
On failure, this function returns an error code in the format described in Return codes.
Remarks
This function sends license file content to the license server that is specified in LMX_OPT_LICENSE_PATH and saves the license file in the license server configuration file. This license will be available on the next license server restart. Only paths set through LMX_SetOption and LMX_OPT_LICENSE_PATH will be used; all other paths will be ignored. This ensures full control of which server the license will be uploaded to.