VLScgSetAdditive
Syntax
int VLScgSetAdditive (VLScg_HANDLE iHandle, codeT *codeP, char *flag);
Argument | Description |
iHandle |
The instance handle for this library. |
codeP |
The pointer to the codeT struct. |
flag |
The value of flag indicates whether the license to be generated is additive, aggregate, or exclusive: >VLScg_ADDITIVE = 0 >VLScg_EXCLUSIVE = 1 >VLScg_AGGREGATE_LICENSE = 2 |
Description
Sets the combining property of how a license will interact with a license already installed for this feature and version. If a license is defined as:
> Exclusive: It will override an existing license for the same feature and version.
>Additive: It appends changes to an existing additive license for the same feature and version.
>Aggregate: Multiple licenses of the same feature and version can be combined to form an aggregated hard and soft limit, yet the start and expiry dates of the individual licenses strings are maintained in an independent manner.
Returns
The status code VLScg_SUCCESS is returned, if successful. Otherwise, it will return the following error codes:
Error Code | Description |
---|---|
VLScg_INVALID_INT_TYPE |
If value is not numeric. |
VLScg_EXCEEDS_MAX_VALUE |
If the value exceeds VLScg_AGGREGATE_LICENSE. |
VLScg_LESS_THAN_MIN_VALUE |
If the value is lower than VLScg_ADDITIVE. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .