llkFeatureCheck
Description
Checking the Expiration Date of a Feature.
For example, the expiration date of a Feature in a protected application is checked when the application tries to execute/create some module or call a function associated with the Feature. And the received status code is LLK_FEATURE_EXPIRED, the execution of a protected module or function must not be started
Syntax
llkFeatureCheck
LLKStatus LLK_API llkFeatureCheck(uint32_t featureId);
Parameters
Param | Description |
---|---|
featureId | Feature number |
Return Values
Status Code | No. | Description |
---|---|---|
LLK_OK | 0 | Request was successfully completed. The operation status is successful |
LLK_FEATURE_NOT_FOUND | 2 | Requested Feature not found |
LLK_FEATURE_EXPIRED | 4 | Requested Feature has expired |
LLK_FEATURE_INSUFFICIENT_EXECUTIONS_COUNT | 6 | Executions balance is exhausted |
LLK_FINGERPRINT_MISMATCH | 10 | The fingerprint of the current machine mismatch the activation fingerprint |
LLK_SERIAL_NUMBER_MISMATCH | 11 | If a Program key with some Serial number installed, the attempt to initialize the environment with another serial number can't be successful. This is a protection for unintentional overwrites |
LLK_LICENSE_NOT_ACTIVATED_YET | 12 | The entitlement has not been activated yet. For activation/initialization, use llkActivateLicense |
Examples
C++ example
const LLKStatus status = llkFeatureCheck(featureId);
std::cout << "LLKStatus: " << llkStatusDescription(status) << std::endl;
Example of a successful operation
LLKStatus: The operation status is successful.
Note
In order to successfully use all other API functions, the entitlement must be activated or initialized. For activation/initialization, use llkActivateLicense
Version history
- Added in version
1.0.0