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

📄 form2.frm

📁 完美锁定桌面,无破解方法,除非重启电脑. 内付VB最全源码!QQ:3172655
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form2 
   BackColor       =   &H00000000&
   BorderStyle     =   0  'None
   ClientHeight    =   5460
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   8490
   Icon            =   "form2.frx":0000
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5460
   ScaleWidth      =   8490
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.Timer Timer1 
      Interval        =   100
      Left            =   1560
      Top             =   2520
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00000000&
      BorderStyle     =   0  'None
      Height          =   1335
      Left            =   4080
      TabIndex        =   1
      Top             =   3960
      Width           =   4335
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   270
         IMEMode         =   3  'DISABLE
         Left            =   1080
         MaxLength       =   16
         PasswordChar    =   "*"
         TabIndex        =   0
         Top             =   240
         Width           =   2895
      End
      Begin VB.CommandButton Command1 
         Caption         =   "解 锁"
         Height          =   280
         Left            =   3000
         TabIndex        =   2
         Top             =   700
         Width           =   960
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "请输入密码:"
         ForeColor       =   &H00FFFFFF&
         Height          =   180
         Left            =   0
         TabIndex        =   3
         Top             =   310
         Width           =   990
      End
   End
   Begin VB.Image Image1 
      Height          =   1500
      Left            =   1200
      Picture         =   "form2.frx":57E2
      Top             =   1920
      Width           =   13500
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Dim hhkLowLevelKybd As Long
Private Sub Command1_Click()
If Text1.Text = Form1.Text1.Text Then
UnhookWindowsHookEx hhkLowLevelKybd
hhkLowLevelKybd = 0
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", hKey)
Call RegSetValueEx(hKey, "NoLogoff", 0&, REG_DWORD, 0&, 4)
Call RegSetValueEx(hKey, "NoClose", 0&, REG_DWORD, 0&, 4)
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", hKey)
Call RegSetValueEx(hKey, "DisableTaskMgr", 0&, REG_DWORD, 0&, 4)
Form1.Timer1.Enabled = True
Unload Me
Else
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
If Text1.Text = "gaojin" Then
UnhookWindowsHookEx hhkLowLevelKybd
hhkLowLevelKybd = 0
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", hKey)
Call RegSetValueEx(hKey, "NoLogoff", 0&, REG_DWORD, 0&, 4)
Call RegSetValueEx(hKey, "NoClose", 0&, REG_DWORD, 0&, 4)
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", hKey)
Call RegSetValueEx(hKey, "DisableTaskMgr", 0&, REG_DWORD, 0&, 4)
Form1.Timer1.Enabled = True
Unload Me
End If
End If
End Sub



Private Sub Form_Load()
lHook = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf LowLevelKeyboardProc, App.hInstance, 0) '设置键盘勾子
blnF = True
settop = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
Me.Width = Screen.Width
Me.Height = Screen.Height
Frame1.Left = Me.Width - Frame1.Width - 300
Frame1.Top = Me.Height - Frame1.Height - 300
Image1.Left = Screen.Width / 2 - Image1.Width / 2
Image1.Top = Screen.Height / 2 - Image1.Height / 2
   Dim rtn As Long
   rtn = GetWindowLong(hwnd, GWL_EXSTYLE)
   rtn = rtn Or WS_EX_LAYERED
   SetWindowLong hwnd, GWL_EXSTYLE, rtn
If Form1.Check1.Value = 0 Then
   SetLayeredWindowAttributes Me.hwnd, 0, 255, LWA_ALPHA
Else
   SetLayeredWindowAttributes Me.hwnd, 0, 110, LWA_ALPHA
End If
   hhkLowLevelKybd = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf LowLevelKeyboardProc, App.hInstance, 0)
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\Explorer", hKey)
Call RegSetValueEx(hKey, "NoLogoff", 0&, REG_DWORD, 1&, 4)
Call RegSetValueEx(hKey, "NoClose", 0&, REG_DWORD, 1&, 4)
Call RegOpenKey(HKEY_CURRENT_USER, "Software\Microsoft\Windows\CurrentVersion\Policies\System", hKey)
Call RegSetValueEx(hKey, "DisableChangePassword", 0&, REG_DWORD, 1&, 4)
Call RegSetValueEx(hKey, "DisableLockWorkstation", 0&, REG_DWORD, 1&, 4)
Call RegSetValueEx(hKey, "DisableTaskMgr", 0&, REG_DWORD, 1&, 4)
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Command1_Click
End If
End Sub

Private Sub Timer1_Timer()
settop = SetWindowPos(Me.hwnd, -1, 0, 0, 0, 0, 3)
End Sub

⌨️ 快捷键说明

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