VLSaddFeature

Syntax

LS_STATUS_CODE  VLSaddFeature (	 	 
unsigned char	 	*licenseString,
unsigned char	 	*unused1,
LS_CHALLENGE	 	*unused2 ); 	 	 
Argument Description
licenseString

String containing licensing information.

unused1

Use NULL as the value.

unused2

Use NULL as the value.

Description

Adds licensing information about a feature to the targeted License Manager’s memory (implying that the license is not permanently added to the license file, it will not be reloaded when the License Manager is restarted).

Returns

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

Error Code Description

VLS_CALLING_ERROR

Attempted to use standalone mode with network only library, or network mode with standalone library.

LS_NO_SUCCESS

licenseString is NULL.

VLS_ADD_LIC_FAILED

Generic error indicating the feature has not been added.

VLS_LICENSE_START_DATE_NOT_REACHED The license start date has not reached yet.

VLS_NO_SERVER_RUNNING

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

VLS_NO_SERVER_RESPONSE

Communication with License Manager has timed out.

VLS_HOST_UNKNOWN

Invalid hostName was specified.

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

Message returned by the License Manager could not be understood.

LS_NO_NETWORK

Generic error indicating that the network is unavailable in servicing the license operation.

LS_NORESOURCES

An error occurred in attempting to allocate memory needed by this function.

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