VLScgAllowSharedLic and VLSAllowTeamCriteria

Syntax

In case of non-capacity license:

int VLScgAllowSharedLic (VLScg_HANDLE iHandle, codeT *codeP);

In case of capacity license, you need to use the VLScgAllowTeamCriteria macro which is a wrapper to the VLScgAllowSharedLic API:

int VLScgAllowTeamCriteria (VLScg_HANDLE iHandle, codeT *codeP);
Argument Description

iHandle

The instance handle for this library.

codeP

The pointer to the codeT struct.

We recommend using the VLScgAllowSharedLic API for non-capacity licenses and VLScgAllowTeamCriteria API for capacity license respectively.

Description

Allows license sharing and sets the sharing criteria for non-capacity licenses.

Returns

The VLScgAllowXXX function tests whether the corresponding VLScgSetXXX should be called. If VLScgAllowXXX returns 1 then the corresponding VLScgSetXXX function can be called. Otherwise, it will return 0 as false.