VLScgSetVendorInfoExt

Syntax

int VLScgSetVendorInfoExt (VLScg_HANDLE iHandle, codeT *codeP, char *pcPrivateVendorInfo,
			    char *pcPublicVendorInfo);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

pcPrivateVendorInfo

Any printable ASCII text. Maximum of 2000 characters. This value appears as encrypted string in the license code.

pcPublicVendorInfo

Any printable ASCII text (refer to Reserved Characters and Strings). Maximum of 395 characters. This value appears as unencrypted string in the license code.

In case of redundant licenses, the vendor information (both public and private) should not exceed 395 characters.

Description

Sets private vendor information and public vendor information in a license code. These values, passed as pcPrivateVendorInfo and pcPublicVendorInfo are set in the vendor_info and plain_vendor_info members, respectively, of the passed codeT structure.

The VLScgAllowVendorInfoExt API function must be called before calling this API to ensure that setting private vendor information and public vendor information in a license code is allowed.

NOTE   For short-numeric license codes, only private information can be specified, not exceeding 98 characters. For long licenses codes, both public and private information can be specified.

Returns

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

Error Code Description

VLScg_INVALID_INPUT

Argument specified is not correct. Can be because:

> codeP is NULL.

>pcPrivateVendorInfo or pcPublicVendorInfo is NULL.

> If the API is called for licenses earlier than version 11.

VLScg_EXCEEDS_MAX_STRLEN

Length of the input string exceeds the maximum limit.

VLScg_RESERV_STR_ERR

The input string is a reserved word.

VLScg_INVALID_CHARS

The input string contains non-printable characters.

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