VLScgSetTrialHours

Syntax

int VLScgSetTrialHours (VLScg_HANDLE iHandle, codeT *codeP, char *trialHoursStr);
Argument Description
iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

trialHoursStr

The number of hours for using the trial license. The minimum and maximum values are defined by the VLScg_MIN_TRIALHOURS_LONGCODE_LIMIT and VLScg_MAX_TRIALHOURS_

LONGCODE_LIMIT, respectively.

Description

Sets the number of trial hours in the trial license code. However, before this API is called, you need to call the VLScgAllowTrialHours API function. Calling the VLScgAllowTrialHours API function ensures that the trial hours are allowed.

Returns

VLScg_SUCCESS is returned if this API is successful, else one of the following error codes is returned:

Error Code Description
VLScg_INVALID_INPUT

Argument specified is not correct as:

>codeP is NULL

>trialHoursStr is NULL.

VLScg_INVALID_TRIALHOURS

The trialHoursStr argument is invalid.

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