VLScgSetNumSubnets

Syntax

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

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

info

Sets the number of subnets: Should be from 1 to VLScg_MAX_NUM_SUBNETS whose value is 7. 0 is a special value which means no site licensing.

Description

Sets the number of subnets the licensed application can run on. To set actual site addresses, use VLScgSetSiteLicInfo.

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 the value of info is not numeric.

VLScg_EXCEEDS_MAX_VALUE

If the value of info is greater than VLScg_MAX_NUM_SUBNETS.

VLScg_LESS_THAN_MIN_VALUE

If the value of info is less than 0.

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