Skip to main content

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

ParamDescription
featureIdFeature number

Return Values

Status CodeNo.Description
LLK_OK0Request was successfully completed. The operation status is successful
LLK_FEATURE_NOT_FOUND2Requested Feature not found
LLK_FEATURE_EXPIRED4Requested Feature has expired
LLK_FEATURE_INSUFFICIENT_EXECUTIONS_COUNT6Executions balance is exhausted
LLK_FINGERPRINT_MISMATCH10The fingerprint of the current machine mismatch the activation fingerprint
LLK_SERIAL_NUMBER_MISMATCH11If 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_YET12The 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