VERSION 5.00
Begin VB.Form Form3 
   Caption         =   "Host Informations"
   ClientHeight    =   3045
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4485
   Icon            =   "host.frx":0000
   LinkTopic       =   "Form3"
   ScaleHeight     =   3045
   ScaleWidth      =   4485
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox Text8 
      Height          =   288
      Left            =   1860
      TabIndex        =   15
      Text            =   "Searching..."
      ToolTipText     =   "Your Flex-ID 8"
      Top             =   2220
      Width           =   2532
   End
   Begin VB.TextBox Text7 
      Height          =   288
      Left            =   1860
      TabIndex        =   13
      Text            =   "Searching..."
      ToolTipText     =   "Your IP"
      Top             =   1620
      Width           =   2532
   End
   Begin VB.TextBox Text6 
      Height          =   288
      Left            =   1860
      TabIndex        =   11
      Text            =   "Searching..."
      ToolTipText     =   "Your HD disk number"
      Top             =   1320
      Width           =   2532
   End
   Begin VB.TextBox Text5 
      Height          =   288
      Left            =   1860
      TabIndex        =   9
      Text            =   "Searching..."
      ToolTipText     =   "Your FLEX ID 7"
      Top             =   1920
      Width           =   2532
   End
   Begin VB.TextBox Text4 
      Height          =   288
      Left            =   1860
      TabIndex        =   7
      Text            =   "Searching..."
      ToolTipText     =   "Your HOST name"
      Top             =   1020
      Width           =   2532
   End
   Begin VB.TextBox Text3 
      Height          =   288
      Left            =   1860
      TabIndex        =   5
      Text            =   "Searching..."
      ToolTipText     =   "Your computer name"
      Top             =   720
      Width           =   2532
   End
   Begin VB.TextBox Text2 
      Height          =   288
      Left            =   1860
      TabIndex        =   3
      Text            =   "Searching..."
      ToolTipText     =   "Your logged in name"
      Top             =   420
      Width           =   2532
   End
   Begin VB.TextBox Text1 
      Height          =   288
      Left            =   1860
      TabIndex        =   1
      Text            =   "Searching..."
      ToolTipText     =   "Your Ethernet Address"
      Top             =   120
      Width           =   2532
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Exit"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   120
      TabIndex        =   0
      ToolTipText     =   "Return to main"
      Top             =   2580
      Width           =   4212
   End
   Begin VB.Label Label8 
      Caption         =   "Flex key 2 ID:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   16
      Top             =   2280
      Width           =   1632
   End
   Begin VB.Label Label7 
      Caption         =   "Host IP:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   14
      Top             =   1680
      Width           =   1632
   End
   Begin VB.Label Label6 
      Caption         =   "Disk Serial Num.:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   12
      Top             =   1380
      Width           =   1632
   End
   Begin VB.Label Label5 
      Caption         =   "Flex key 1 ID:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   10
      Top             =   1980
      Width           =   1632
   End
   Begin VB.Label Label4 
      Caption         =   "Host Name:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   8
      Top             =   1080
      Width           =   1632
   End
   Begin VB.Label Label3 
      Caption         =   "User:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   6
      Top             =   780
      Width           =   1632
   End
   Begin VB.Label Label2 
      Caption         =   "User logged in:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   4
      Top             =   480
      Width           =   1632
   End
   Begin VB.Label Label1 
      Caption         =   "Ethernet Address:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   192
      Left            =   120
      TabIndex        =   2
      Top             =   180
      Width           =   1632
   End
End
Attribute VB_Name = "Form3"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub

Private Sub Form_Activate()
Screen.MousePointer = 11
DoEvents

MY_XOR1 = MY_VENDOR_SEED1 Xor MY_VENDOR_KEY5
MY_XOR2 = MY_VENDOR_SEED2 Xor MY_VENDOR_KEY5
i% = b326_6_LP_SETUP(MY_VENDOR_NAME, MY_VENDOR_KEY1, MY_VENDOR_KEY2, MY_VENDOR_KEY3, MY_VENDOR_KEY4, MY_XOR1, MY_XOR2)


Dim k As String
Dim HostidType As Long
Dim BufLen As Integer
BufLen = 2048
DoEvents
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_ETHER
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
If UCase(RTrim(k)) = "FFFFFFFF" Then
    Text1.Text = "No ethernet card detected"
Else
    Text1.Text = RTrim(k)
End If
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_USER
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text2.Text = RTrim(k)
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_DISPLAY
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text3.Text = RTrim(k)
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_HOSTNAME
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text4.Text = RTrim(k)
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_FLEXID1_KEY
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text5.Text = RTrim(k)

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_DISK_SERIAL_NUM
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text6.Text = RTrim(k)
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_INTERNET
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
If RTrim(k) = "" Then
    Text7.Text = "No IP Assigned at this machine"
Else
    Text7.Text = RTrim(k)
End If
DoEvents

BufLen = 2048
k = Space$(2048) ' this may need to be made larger depending upon size of license file
HostidType = HOSTID_FLEXID2_KEY
i% = b326_6_LC_HOSTID(HostidType, k, BufLen)
Text8.Text = RTrim(k)
DoEvents

Screen.MousePointer = 0
End Sub


