⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regid.frm

📁 移动
💻 FRM
字号:
VERSION 5.00
Begin VB.Form reghj 
   Caption         =   "注册_By huiji"
   ClientHeight    =   3090
   ClientLeft      =   4065
   ClientTop       =   3015
   ClientWidth     =   3540
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   3540
   Begin VB.CommandButton Command1 
      Caption         =   "注册"
      Height          =   375
      Left            =   1080
      TabIndex        =   4
      Top             =   2040
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   360
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   1440
      Width           =   2775
   End
   Begin VB.TextBox Regtxt 
      Height          =   390
      Left            =   360
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   480
      Width           =   2895
   End
   Begin VB.Label Label3 
      Alignment       =   2  'Center
      Caption         =   "请致电本公司,以获得注册码。"
      Height          =   255
      Left            =   360
      TabIndex        =   5
      Top             =   2640
      Width           =   2775
   End
   Begin VB.Label Label2 
      Caption         =   "注册码"
      Height          =   255
      Left            =   360
      TabIndex        =   2
      Top             =   1080
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "硬件ID"
      Height          =   255
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   855
   End
End
Attribute VB_Name = "reghj"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
'验证注册ID
  Dim Driver, VolName, Fsys As String
  Dim volNumber, MCM, FSF As Long
  
  
  Driver = "c:\"
  Dim res As Long
  res = GetVolumeInformation(Driver, VolName, 127, volNumber, MCM, FSF, Fsys, 127)
  Dim Tid As Long
  Tid = volNumber / 2 + 123456789
  Regid = Val(Text1.Text)
  If Regid = Tid / 4 * 3 + 987654321 Then
  
    iniFileName = "settings"
     s2 = "ZZHJ"
     d2 = "353568" + Text1.Text
      SetIniS "SMS Messenger V1.0", s2, d2
     ' SetIniS "SMS Messenger V1.0", "Port", "0"
      ' SetIniS "SMS Messenger V1.0", "Setting", "0"
       ' SetIniS "SMS Messenger V1.0", "Msgvalidity", "0"
       ' SetIniS "SMS Messenger V1.0", "SMSC", "0"
        ' SetIniS "SMS Messenger V1.0", "MA", "0"
    'MsgBox "正确!"
    Unload reghj
    frmBrowser.Show
  Else
    MsgBox "请致电公司,索取注册码!"
  End If
End Sub

Private Sub Form_Load()
 '根据C盘序列号得到原ID
 Dim Driver, VolName, Fsys As String
  Dim volNumber, MCM, FSF As Long
  Dim s2, d2, d1
  Dim res As Long
  Dim Tid As Long
  
  On Error Resume Next
   Driver = "c:\"
  res = GetVolumeInformation(Driver, VolName, 127, volNumber, MCM, FSF, Fsys, 127)
  Tid = volNumber / 2 + 123456789
   Regid = Tid / 4 * 3 + 987654321
    iniFileName = "settings"
    s2 = "ZZHJ"
    d2 = GetIniS("SMS Messenger v1.0", s2, d2)
    d1 = Mid(d2, 7, (Len(d2) - 6))

    If Val(d1) = Val(Regid) Then
    SMSmainfrm.Show
        Unload reghj
  Else
   
'****************************************************************************
    
  'volNumber = Text4.Text
  'Driver = "c:\"
  'Dim res As Long
 'res = GetVolumeInformation(Driver, VolName, 127, volNumber, MCM, FSF, Fsys, 127)
  'volNumber是C盘序列号
  'Localid = volNumber / 2 + 123456789
  Regtxt.Text = Tid ' Localid
  
  Text1.Text = ""
'****************************************************************************
   'MsgBox "错误!"
  'End If
End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -