·Q½Ð±Ð¤@¤U¡A¬O§_¦³¥i¯à§Q¥Îvb°µ¤@Ó¹ïÀ³¤U±ªºµù¥U½X°µ¤@Óµù¥U¾÷©O¡H
³o¬O±qºô¸ô¤W©Ò§ä¨ìªº½X¡G
Dim temp
temp = 88888888
Dim MyUserName
MyUserName = GetSetting(appname:="MyApp", section:="Startup", Key:="User")
RegValue = GetSetting(appname:="MyApp", section:="Startup", Key:="Reg")
Dim Reg, Serial1, Serial2 As Long
v = GetHardDiskInfo(hdPrimaryMaster, 3)
For i = 1 To Len(v)
yzc = yzc + Asc(Mid(v, i, 1)) * 10
Next
Serial1 = yzc
Dim serial
serial = Serial1
Dim Head, RegCode As String
Dim head1, head2
head1 = Chr(Left(serial, 1) + 65 + (serial Mod 2))
head2 = Chr(Right(serial, 1) + 74)
Head = head1 & head2
Reg = Round(Abs(serial + temp) / 3, 0) + serial
If RegValue = serial + temp Then
MsgBox "¥»Àɮפw¥Ñ" & MyUserName & "µù¥U¦¨¥\¡I½Ð©ñ¤ß¨Ï¥Î¡I ", vbInformation, "µù¥U¸ê°T"
Exit Sub
End If |