Module WinAPI
    Public Declare Function GetWindowsDirectory& Lib "kernel32" Alias _
    "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByRef nSize As Integer)
    Public Driver_TYPE As String = ""
    Public Const Driver_NONE As String = "NONE"
    Public Const Direct_Driver As String = "USB" ' native USB
    Public Const COM_Port_Driver As String = "COM" ' virtual Com port
    Public Const Detected_Direct_Driver As String = " (detected: Direct USB Driver)" ' native USB
    Public Const Detected_COM_Port_Driver As String = " (detected: VCP (Virtual COM Port) Driver)" ' virtual Com port
    Public Const sCritical_Error As String = "Critical error"
    Public sCurrentStopMessage As String = ""

    Declare Function FT_GetDeviceInfoDetail Lib "FTD2XX.dll" (ByVal Index As Integer, ByRef Flags As Integer, ByRef TheType As Integer, ByRef ID As Integer, ByRef LocId As Integer, ByVal SerialNumber As String, ByVal Description As String, ByRef Handle As Integer) As Integer


End Module
