VLScgSetLicExpirationYear

Syntax

int VLScgSetLicExpirationYear (VLScg_HANDLE iHandle, codeT *codeP, char *info);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Enter year in 4 digits (e.g., 2008). Use the VLScg_NEVER_STRING macro (defined in lscgen.h) for infinite expiration.

Description

Sets the year of the date that the license expires.

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 of info is not numeric.

VLScg_INVALID_YEAR

If the year is invalid.

VLScg_INVALID_DEATH_YEAR

If the death year is less than 2006. The death year must be in accordance with the minimum birth year (refer to VLScgSetLicBirthYear).

VLScg_EXCEEDS_MAX_VALUE

If the value exceeds the maximum allowed year, which is 2133.

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