choose case hex_data[e]
case "A"
hex_data[e] = "10"
case "C"
hex_data[e] = "11"
case "X"
hex_data[e] = "12"
case "M"
hex_data[e] = "13"
case "H"
hex_data[e] = "14"
case "R"
hex_data[e] = "15"
end choose
end if
resnum1 = resnum1 + long(hex_data[e]) * 16 ^ e
pn --
e ++
for d = 1 to fs_len
fsn[d] = endsir[integer(mid(resnum8,d,1))]
next
for d = 1 to fs_len
disksn = disksn + fsn[d]
next
return disksn
string regnumgive
string disknt
integer i
integer j
if is_user = true then
if isvalid(message) then
return 0
else
return message.returnvalue
end if
end if
if parent.sle_3.text = "" then
parent.sle_3.setfocus()
if isvalid(message) then
return 0
else
return message.returnvalue
end if
end if
regnumgive = trim(parent.sle_3.text)
if len(regnumgive) < 4 then
if isvalid(message) then
return 0
else
return message.returnvalue
end if
end if
if parent.qc <> parent.mt then
parent.ciq = 60
end if
if parent.ciq = 0 then
registryset("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName","Prefix",regstring!,"3")
halt close
end if
disknt = f_restore_dsknum(regnumgive)
if disknt <> disknum_s then
parent.cyc ++
if parent.cyc > 20 then
if isvalid(message) then
return 0
else
return message.returnvalue
end if
if isvalid(message) then
return 0
else
return message.returnvalue
end if
end if
next
parent.koba ++
if parent.koba > 8 then
registryset("HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName","Prefix",regstring!,"3")
halt close
end if
parent.sle_3.setfocus()
if isvalid(message) then
return 0
else
return message.returnvalue
end if
end if
registryset("HKEY_CURRENT_USER\Software\drvtest","IDcheck",regstring!,regnumgive)
messagebox("注册成功","祝贺你注册成功!请重新启动本软件",information!,ok!)
halt close
if isvalid(message) then
return 0
else
return message.returnvalue
end if