You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Description

Uses for Offline activation mode. On a computer with Internet access, it sends an activation request prepared in advance using the GrdLicenseCreateActivationRequest() function to the Guardant license activation server. 

To save the activation request, the function allocates memory. To free the allocated memory, call the GrdFree() function.

Syntax

int GRD_API GrdLicenseSendActivationRequest(const char* serialNumber, 
											GrdCustomerInfo* customerInfo,
                                            const void* request,
											grd_uint32 requestSize,
                                            const char* host, 
											grd_uint32 port,
                                            void** outResponse, 
											grd_uint32* outResponseSize);

Parameters

serialNumber

Pointer to a buffer with a string containing the serial number

customerInfo [optional]

Pointer to a structure containing customer information GrdCustomerInfo. May be NULL

request
Pointer to the activation request buffer
requestSize
The size (in bytes) of the activation request buffer
host

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

port
Guardant license activation server port
outResponse

Pointer to the return value of the pointer to the response buffer from the server

outResponseSize
Pointer to the return value of the size (in bytes) of the server response buffer

Return values

GRD_OK

GRD_SERIAL_NUMBER_RESOURCE_EXHAUSTED

GRD_LICENSE_ALREADY_ACTIVATED

GRD_REQUEST_FAILED

GRD_GET_RESPONSE_FAILED

GRD_SERVER_NOT_FOUND

GRD_INCORRECT_RESPONSE_DATA

GRD_ACTIVATION_NOT_AVAILABLE

GRD_INVALID_PARAMETER

  • No labels