.. index:: 
  !BiosealLicense.getExternalDriveHardwareCode Method
  
.. _id3_bioseal_bioseal_license_get_external_drive_hardware_code_class_method:

===============================================================================
BiosealLicense.getExternalDriveHardwareCode Method
===============================================================================

Module: :ref:`BiosealLicense<id3_bioseal_bioseal_license_class>`

Definition
----------

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


.. code:: Dart

    static String getExternalDriveHardwareCode(LicenseHardwareCodeType hardwareCodeType, String? externalDrivePath)

**Parameters**

.. line-block::

    ``hardwareCodeType`` :ref:`LicenseHardwareCodeType<id3_bioseal_license_hardware_code_type_enum>`
    :guilabel:`in` The requested hardware code type. Must be windowsUsb.

    ``externalDrivePath`` String
    :guilabel:`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**

.. line-block::

    ``String``
    The device hardware code.

**Exceptions**

.. line-block::

    :ref:`BiosealException<id3_bioseal_bioseal_exception>`
    An error has occurred during Bioseal Library execution.



