VLSgetTrialPeriodLeft

Client Server Static Library DLL
 

Syntax

int VLSgetTrialPeriodLeft (	 	 
unsigned char	 	*feature_name,
unsigned char	 	*version,
unsigned long	 	*trialperiod,
unsigned char LSFAR	*unused1 );
Argument Description

feature_name

Name of the feature.

version

Version of the feature. Must be unique.

trialperiod (OUT)

Number of seconds left in the trial license. Points to integer in the trialperiod parameter.

unused1

Uses NULL as the value.

Description

Returns the remaining time left in a trial license. The usage period for trial licenses does not begin until the application is first executed, i.e., not when the application is installed.

Returns

The status code LS_SUCCESS is returned if standalone library is used. Otherwise, it will return the following error codes:

Error Code Description

VLS_CALLING_ERROR

> feature_name is NULL.

>version is NULL

> trialperiod is NULL

>Both feature name and version cannot be NULL at the same time.

VLS_SEVERE_INTERNAL_ERROR

An Irrecoverable internal error has occurred in processing.

VLS_NO_SERVER_ RUNNING

License Manager on specified host is not available for processing license operation request.

VLS_HOST_UNKNOWN

Invalid hostname was specified.

LS_NO_NETWORK

Generic error indicating that the network is unavailable for servicing the licensing operation.

VLS_NO_SERVER_ RESPONSE

Communication with License Manager has timed out.

 

VLS_BAD_SERVER_ MESSAGE

Message from License Manager could not be understood.

VLS_INTERNAL_ERROR

An internal error has occurred in processing.

VLS_NO_TRIAL_INFO

No Trial usage info.

VLS_TRIAL_LIC_ EXHAUSTED

Trial license expired or trial license usage exhausted.

 

VLS_TRIAL_INFO_ FAILED

Trial usage query failed

 

VLS_NO_SERVER_FILE

The License Manager has not been set and the client application is unable to determine which License Manager to use.

VLS_BAD_SERVER_ MESSAGE

An error has occurred in decrypting (or decoding) a network message· Probably an incompatible or unknown server, or a version mismatch.

For a complete list of the error codes, see Licensing Library Error and Result Codes.