VLScgSetOutLicType

Syntax 

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

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

flag

Valid values are:

>VLScg_ENCRYPTED_STRING = “0”

>VLScg_EXPANDED_READABLE_STRING = “1”

>VLScg_CONCISE_READABLE_STRING = “2”

Description

Controls the type of license string generated. License output formats can be: encrypted, expanded readable, and concise readable.

The license code contains all of the information that defines the license agreement between you and your customer: how many users can run the application at a time, whether the license will expire after a specific number of days, whether the application can only run on a specific computer, and so on. Encrypted license strings contain this information about the license agreement, but cannot be read by your customers.

Concise readable license codes store information about the provisions of a licensing agreement in readable form, such as plain text with white spaces so that it is easily read (and understood) by the user.

The expanded readable license string, a string is appended to the numeric values to specify what that numeric value stands. For example, 60_MINS implies that 60 specifies the time in minutes. These strings do not appear in the concise format, only a 60 appears in the concise readable license string, as opposed to 60_MINS in the expandable readable format.

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 the value is not numeric.

VLScg_INVALID_RANGE

If value is not in the range allowed.

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