VLScgSetLicType

Syntax

int VLScgSetLicType (VLScg_HANDLE iHandle, codeT *codeP, char *lictype);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

lictype

Set the type of license.

>VLScg_TRIAL_LIC_STRING = “1”

>VLScg_NORMAL_LIC_STRING = “0”

Description

Sets the type of license to either trial or normal.

Trial licenses are relative time-limited licenses that use a trial period of 730 (short licenses) or 1461 (long licenses) days. Notice, trial licenses do not start until the first-time the application is executed (as opposed to the time that the application is installed).

Returns

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

Error Code Description

VLScg_INVALID_LICTYPE

If license type is not valid.

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