VLScgSetLicenseType

Syntax

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

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

Sets the licType member of codeT struct. The values are:

>VLScg_NORMAL_LIC_STRING - Non-trial license = “0”

>VLScg_TRIAL_LIC_STRING - Trial license = “1”

Description

Sets the license type to non-trial and trial licenses.

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_TRIAL_LIC_STRING.

VLScg_LESS_THAN_MIN_VALUE

If value is lower than VLScg_NORMAL_LIC_STRING.

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