📄 formmain.frm
字号:
VERSION 5.00
Begin VB.Form FormMain
BorderStyle = 1 'Fixed Single
Caption = "VS 2.0.11 Patch Build 0012"
ClientHeight = 2664
ClientLeft = 36
ClientTop = 336
ClientWidth = 6216
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2664
ScaleWidth = 6216
StartUpPosition = 3 '窗口缺省
Begin VSPatch.MyButton MyButton2
Height = 372
Left = 4800
TabIndex = 6
Top = 2160
Width = 1332
_ExtentX = 2346
_ExtentY = 646
Icon = "FormMain.frx":0000
Style = 5
Caption = "修改VS内存 "
iNonThemeStyle = 0
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 1
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.1525
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MaskColor = 0
RoundedBordersByTheme= 0 'False
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Enabled = 0 'False
Height = 264
Index = 2
Left = 120
TabIndex = 5
Text = "尚未修改"
Top = 1800
Width = 6012
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Enabled = 0 'False
Height = 264
Index = 1
Left = 120
TabIndex = 3
Text = "没有找到VS进程"
Top = 720
Width = 6012
End
Begin VSPatch.MyButton MyButton1
Height = 372
Left = 4800
TabIndex = 2
Top = 1080
Width = 1332
_ExtentX = 2346
_ExtentY = 646
Icon = "FormMain.frx":001C
Style = 5
Caption = "获取VS进程 "
iNonThemeStyle = 0
Tooltiptitle = ""
ToolTipIcon = 0
ToolTipType = 1
ttForeColor = 0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.1525
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
MaskColor = 0
RoundedBordersByTheme= 0 'False
End
Begin VB.TextBox Text1
Alignment = 2 'Center
Enabled = 0 'False
Height = 264
Index = 0
Left = 120
TabIndex = 0
Text = "老鼠工作室荣誉出品"
Top = 120
Width = 6012
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "北京交通大学电子信息工程学院"
ForeColor = &H80000006&
Height = 252
Index = 1
Left = 120
TabIndex = 8
Top = 2400
Width = 4572
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "大坏熊、小米奇、卡神喵喵、FF、还有大白"
ForeColor = &H8000000D&
Height = 252
Index = 0
Left = 120
TabIndex = 7
Top = 2160
Width = 4572
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "第2步:点击按钮,修改VS内存特征"
Height = 180
Index = 1
Left = 120
TabIndex = 4
Top = 1560
Width = 2808
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "第1步:点击按钮,获取VS平台进程"
Height = 180
Index = 0
Left = 120
TabIndex = 1
Top = 480
Width = 2808
End
End
Attribute VB_Name = "FormMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim TarProcess As iProcess
Private Sub Form_Unload(Cancel As Integer)
CloseHandle TarProcess.pHandle
End Sub
Private Sub MyButton1_Click()
Dim lnghWnd As Long
lnghWnd = FindWindow("#32770", "VS竞技游戏平台 -- 正式版-2.0.11")
If lnghWnd = 0 Then Exit Sub
If TarProcess.hwnd = lnghWnd Then Exit Sub
TarProcess.hwnd = lnghWnd
GetWindowThreadProcessId TarProcess.hwnd, TarProcess.pid
TarProcess.pHandle = OpenProcess(PROCESS_ALL_ACCESS Or PROCESS_VM_OPERATION Or PROCESS_VM_READ Or PROCESS_VM_WRITE, False, TarProcess.pid)
If TarProcess.pHandle = 0 Then Text1(0).Text = "没有找到VS进程" Else Text1(1).Text = TarProcess.pHandle
End Sub
Private Sub MyButton2_Click()
Text1(2).Text = "已经修改"
WriteProcessMemory TarProcess.pHandle, ByVal &H44C604, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H44C605, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H44C606, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H44C607, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H44C608, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H44C609, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H459463, &HEB, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H45959C, &HE9, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H45959D, &H19, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H45959E, &H1, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H45959F, &H0, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H4595A0, &H0, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H4595A1, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H493952, &HC3, 1, 0 'ret
WriteProcessMemory TarProcess.pHandle, ByVal &H493953, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H493954, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H493955, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H493956, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H493B43, &H90, 1, 0 'nop
WriteProcessMemory TarProcess.pHandle, ByVal &H493B44, &H90, 1, 0 'nop
WriteProcessMemory TarProcess.pHandle, ByVal &H495B0F, &HEB, 1, 0 'jmp
'WriteProcessMemory TarProcess.pHandle, ByVal &H495B0F, &HEB, 1, 0 'jmp
WriteProcessMemory TarProcess.pHandle, ByVal &H4AAB93, &HEB, 1, 0 'jmp
WriteProcessMemory TarProcess.pHandle, ByVal &H4A5C4A, &H90, 1, 0 '去除关闭广告
WriteProcessMemory TarProcess.pHandle, ByVal &H4A5C4B, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H4A5C4C, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H4A5C4D, &H90, 1, 0
WriteProcessMemory TarProcess.pHandle, ByVal &H4A5C4E, &H90, 1, 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -