Public Function tstKv () As String
'we convert the string and check the type of converter, if it is Z397-Guard then return its operating mode
Dim stro As String 'formed string
Dim i as byte
Dim rr as string
i = 0
'prepare a message
Do While i <pssl
stro = stro + Chr (m5 (i)) 'convert to symbol
i = i + 1
Loop
'MsgBox Trim (stro)
'MsgBox Mid (Trim (stro), 1, 10)
If Mid (Trim (stro), 1, 10) = "Z397-Guard" Then
rr = Mid (Trim (stro), 27, 1)
Else: rr = 8
Call CloseHandle (ss)
End if