VLScgSetLicBirthYear

Syntax

int VLScgSetLicBirthYear (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., 2006).

Description

Sets the year of the license start date. Not applicable if year is infinite.

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 year is invalid.

VLScg_INVALID_BIRTH_YEAR

If the birth year is less than 2006. The birth year vary depending on the license versions. For example:

>For license version 11 or later - The minimum year should be 2006

>For license version 9 and 10 - The minimum year should be 2004

>For license version 8 - The minimum year should be 2003

>For license version 7 - The minimum year should be 1999

VLScg_EXCEEDS_MAX_VALUE

If value exceeds maximum allowed year that is 2133.

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