DevicesLicense.activateSerialKeyBuffer Method

Module: DevicesLicense

Definition

Activates a license using a serial key and returns the license in a data buffer.

@staticmethod
activate_serial_key_buffer(hardware_code: str, serial_key: str, commentary: str) -> bytearray

Parameters

hardware_code str
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

serial_key str
in The id3 serial key.

commentary str
in Commentary associated to this license activation.

Returns

bytearray
The license data buffer.

Exceptions

An error has occurred during Devices Library execution.
static Uint8List activateSerialKeyBuffer(String? hardwareCode, String? serialKey, String? commentary)

Parameters

hardwareCode String
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

serialKey String
in The id3 serial key.

commentary String
in Commentary associated to this license activation.

Returns

Uint8List
The license data buffer.

Exceptions

An error has occurred during Devices Library execution.
public static byte[] ActivateSerialKeyBuffer(string hardwareCode, string serialKey, string commentary)

Parameters

hardwareCode string
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

serialKey string
in The id3 serial key.

commentary string
in Commentary associated to this license activation.

Returns

byte[]
The license data buffer.

Exceptions

An error has occurred during Devices Library execution.
public static byte[] activateSerialKeyBuffer(String hardwareCode, String serialKey, String commentary) throws DevicesException

Parameters

hardwareCode String
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

serialKey String
in The id3 serial key.

commentary String
in Commentary associated to this license activation.

Returns

byte[]
The license data buffer.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesLicense_ActivateSerialKeyBuffer (
    const char * hardwareCode,
    const char * serialKey,
    const char * commentary,
    unsigned char * licenseFileBuffer,
    int * licenseFileBufferSize)

Parameters

hardwareCode const char *
in The hardware code on which the license file will be attached, to be retrieved using the GetHostHardwareCode function.

serialKey const char *
in The id3 serial key.

commentary const char *
in Commentary associated to this license activation.

licenseFileBuffer unsigned char *
out The license data buffer.

licenseFileBufferSize int *
in Size of the ‘licenseFileBuffer’ buffer. Receives the number of elements in the ‘licenseFileBuffer’ array.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.