FaceLicense.getExternalDriveHardwareCode Method

Module: FaceLicense

Definition

Retrieves the hardware code of the external drive you run the library on. This function works on Windows only.

static String getExternalDriveHardwareCode(LicenseHardwareCodeType hardwareCodeType, String? externalDrivePath)

Parameters

hardwareCodeType LicenseHardwareCodeType
in The requested hardware code type. Must be windowsUsb.

externalDrivePath String
in On Windows to activate a license on a USB device, it must contain the path to the requested USB drive (e.g ‘G:').

Returns

String
The device hardware code.

Exceptions

An error has occurred during Face Library execution.