VLScgSetKeyType

Syntax

int VLScgSetKeyType (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument Description
iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

Flag used to set the code_type member of codeT struct. The values are:

  • VLScg_SINGLE_KEY_STRING = “0”
  • VLScg_MULTI_KEY_STRING = “1”

Description

Controls whether a license will be single or multi-feature license code types.

>Single Feature: Predefined short, numeric license codes where the license code is for a single feature. Notice, if you select Predefined-Single Feature, the feature name must be no more than 2 numeric digits. Most of the attributes are already defined for you and cannot be modified.

>Multi Feature: Predefined short, numeric license types where multiple features (value between 2 - 11) can be placed into a single license code. Notice, if you select Predefined-Multi Feature, the feature name must be no more than 2 numeric digits. Most of the attributes are already defined for you and cannot be modified.

Returns

The status code VLScg_SUCCESS is returned if successful. Otherwise, it will return the following error codes:

Error Code Description

VLScg_INVALID_INT_TYPE

If value is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If value exceeds VLScg_MULTI_KEY.

VLScg_LESS_THAN_MIN_ VALUE

If value is lower than VLScg_SINGLE_KEY.

For the complete list of the error codes, refer to License Generation and Revocation Error Codes .