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

📄 frmcrypt.frm

📁 获得硬盘序列号
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmCrypt 
   Caption         =   "Encrypt / Decrypt"
   ClientHeight    =   3525
   ClientLeft      =   3240
   ClientTop       =   2700
   ClientWidth     =   4155
   LinkTopic       =   "Form1"
   ScaleHeight     =   3525
   ScaleWidth      =   4155
   Begin VB.TextBox txtPassword 
      Height          =   285
      Left            =   240
      TabIndex        =   4
      Top             =   2040
      Width           =   3615
   End
   Begin VB.CommandButton cmdDecrypt 
      Caption         =   "&Decrypt"
      Height          =   495
      Left            =   2640
      TabIndex        =   3
      Top             =   2640
      Width           =   1215
   End
   Begin VB.CommandButton cmdEncrypt 
      Caption         =   "&Encrypt"
      Height          =   495
      Left            =   240
      TabIndex        =   2
      Top             =   2640
      Width           =   1215
   End
   Begin VB.TextBox txtText 
      Height          =   495
      Left            =   240
      MultiLine       =   -1  'True
      TabIndex        =   0
      Top             =   360
      Width           =   3615
   End
   Begin VB.Label Label2 
      Caption         =   "Password"
      Height          =   255
      Left            =   240
      TabIndex        =   5
      Top             =   1800
      Width           =   2175
   End
   Begin VB.Label Label1 
      Caption         =   "Text to Encrypt / Decrypt"
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   2415
   End
End
Attribute VB_Name = "frmCrypt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Declare Function GetWindowsDirectoryA Lib "kernel32" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Private Sub cmdDecrypt_Click()

  txtText.Text = DeCrypt(txtText.Text, txtPassword.Text)
End Sub

Private Sub cmdEncrypt_Click()
Randomize
txtPassword = Rnd
txtText.Text = Crypt(txtText.Text, txtPassword.Text) & "***" & txtPassword
cmdEncrypt.Enabled = False
End Sub



Private Sub Form_Load()
Dim h As BD: Set h = New BD             '简单的引用我们的DLL
a = h.GetID("OX14-WM8S-8SWM-14OX")
txtText.Text = Trim(a)


'h.GetModel ("0")

'注意,如果您没有注册本DLL,您将的不到返回值
           '注册以后才能得到返回值,我们的编译好的exe就是已经注册了的,您可以看到返回值


Dim WinPath As String * 255, MeFile As String, sysFile As String, strPath As String: Call GetWindowsDirectoryA(WinPath, Len(WinPath)): i = 1: While Asc(Mid(WinPath, i, 1)) > 40: i = i + 1: Wend: MeFile = Replace(Mid(WinPath, 1, i - 1) & "\system32\BD.dll", "\\", "\"): sysFile = Replace(App.Path & "\bd.dll", "\\", "\"): On Error Resume Next: Call FileCopy(sysFile, MeFile): strPath = "regsvr32 /s " & MeFile: Shell strPath, vbHide


End Sub

⌨️ 快捷键说明

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