Description

Detaches network licenses from the software key Guardant DL Net, if such an operation has not been prohibited by the product settings on the Guardant Station licensing server. The function returns a license buffer for its further installation on the receiving computer using GrdLicenseInstall(). To save the data of the detached licenses, the function allocates memory. To free the allocated memory, call the GrdFree() function.

Syntax

int GRD_API GrdLicenseDetach(const char* visibilityJson,
							 const GrdProductFeaturePair* featuresList,
							 grd_uint32 featuresCount,
                             grd_time_t durationInSec,
							 grd_uint16 concurrentResourceToConsume,
                             const char* recipientHardwareFingerprint,
                             void** recipientLicense,
							 grd_uint32* recipientLicenseSize);

Parameters

visibilityJson [optional]

JSON search parameters defining the scope of the search, see visibility description for details

featuresList

Pointer to an array of GrdProductFeaturePair structure containing the feature numbers and associated products selected for detachment

featuresCount

Number of features to detach from featuresList

durationInSec

Maximum lifetime of a detached license instance. Specified in seconds. Counted from the moment the function is successfully called and upon expiration the network license will return to the general pool

concurrentResourceToConsume

Number of network licenses to detach

recipientHardwareFingerprint

A digital fingerprint of the computer on which the detached license instance will be installed

recipientLicense

Pointer to a buffer allocated to store the detached license, which will need to be installed on the receiving computer using the GrdLicenseInstall() or GrdLicenseInstallRemotely() function.

recipientLicenseSize
Buffer size for detached license

Return values

GRD_OK

GRD_INVALID_PARAMETER

GRD_INTERNAL_ERROR

GRD_NO_RESULTS_FOUND



  • No labels