VLSaddFeatureToFile

Syntax

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

String containing licensing information.

unused1

Use NULL as the value.

unused2

Use NULL as the value.

unused3

Use NULL as the value.

Description

Adds licensing information about a feature to the License Manager’s memory and license file.

Returns

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

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 allocating memory needed by the function.

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