VLScgSetClientServerLockMode
Syntax
int VLScgSetClientServerLockMode(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 flag values are: >VLScg_FLOATING_STRING - License Manager is locked = “0” >VLScg_BOTH_NODE_LOCKED_STRING - Clients and License Manager are locked = “1” >VLScg_DEMO_MODE_STRING - Trial license (no locking) = “2” >VLScg_CLIENT_NODE_LOCKED_STRING - Only clients are locked = “3” |
Description
Sets whether:
> License Manager is locked
>Clients and License Manager both are locked
>Only clients are locked
>Neither License Manager nor clients are locked.
Validates the value of flag and installs it in the license code structure.
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 of flag exceeds VLScg_CLIENT_NODE_LOCKED. |
VLScg_LESS_THAN_MIN_VALUE |
If the value is lower than the VLScg_FLOATING. |
For the complete list of the error codes, refer to License Generation and Revocation Error Codes .