Description

Allows remote license installation into the user's hardware key, even without prior writing of such a key via Guardant Station. In this way, it is possible to write a license into a completely new key. The function is used on the computer to which the Guardant hardware key is directly connected. To request the required license from the server, it is used the deferred writing code generated through the order creation in Guardant Station.

Syntax

int GRD_API GrdDongleSetLicense(grd_uint32 dongleId,
								const char* serialNumber,
								grd_uint32 driverType,
								const char* host,
								grd_uint32 port);

Parameters

dongleId

Unique identifier (ID) of the hardware key

serialNumber

Deferred writing code

driverType

Flag indicating the type of the driver used after the license installation:

  • GRD_DRIVER_TYPE_NONE
  • GRD_DRIVER_TYPE_HID
  • GRD_DRIVER_TYPE_WINUSB
  • GRD_DRIVER_TYPE_VENDOR
host

Pointer to a string buffer containing the address of the Guardant license activation server.

port

Guardant license activation server port

Return values

GRD_OK

GRD_INVALID_SERIAL_NUMBER

GRD_INTERNAL_ERROR

GRD_DONGLE_NOT_FOUND

GRD_INVALID_PARAMETER

  • No labels