Skip to content
Back to top

# BiosealLicense.getExternalDriveHardwareCode Method

Module: BiosealLicense

## 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

BiosealException
An error has occurred during Bioseal Library execution.