VLScgSetSiteLicInfo

Syntax

int VLScgSetSiteLicInfo (VLScg_HANDLE iHandle, codeT *codeP, char *info, int num);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Set the subnet address. You can use wildcard (for example, *.123.*.28) to specify a range.

num

num is the position of subnet in the array maintaining the subnet info.The value varies from 0 to num_subnets-1 where num_subnets is an element of CodeT struct set using VLScgSetNumSubnets.

Description

Sets subnet address.

Specifies the number of subnets used for site licensing.

Returns

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

Error Code Description

VLScg_INVALID_RANGE

If value is not in the range allowed and if value is not a valid character.

VLScg_LESS_THAN_MIN_VALUE If the value is less than 1.
VLScg_EXCEEDS_MAX_VALUE If the value exceeds the maximum number of clients.

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