Skip to main content

llkGetExecutionsBalance

Description

Retrieve the current balance (remaining quantity).
This topic is only relevant when the license type for a Feature is LLK_EXECUTIONS

Syntax

llkGetExecutionsBalance
LLKStatus LLK_API llkGetExecutionsBalance(uint32_t featureId, uint64_t* curExecutionsBalance);

Parameters

ParamDescription
featureIdFeature number
curExecutionsBalancePointer of the variable

Return Values

Status CodeNo.Description
LLK_OK0Request was successfully completed. The operation status is successful
LLK_INVALID_PARAMETER1The parameter curExecutionsBalance is invalid (null pointers are forbidden)
LLK_FEATURE_NOT_FOUND2Requested Feature not found
LLK_FEATURE_EXPIRED4Requested Feature has expired
LLK_FEATURE_UNSUPPORTED_OPERATION5Feature type does not support the requested operation (relevant when the license type for a Feature is LLK_EXECUTIONS type)
LLK_FEATURE_INSUFFICIENT_EXECUTIONS_COUNT6Requested quantity is greater than current balance. The license for the Feature does not contain enough remaining executions
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
  uint64_t curExecutionsBalance = 0;
const LLKStatus status = llkGetExecutionsBalance(featureId, &curExecutionsBalance);

std::cout << "LLKStatus: " <<
llkStatusDescription(status) <<
" Balance: " << curExecutionsBalance << std::endl

Example of a successful operation

LLKStatus: The operation status is successful. Balance: 500
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