請點選閱讀更多取得密碼
本頁為以下文章相關鏈結
小遊戲 - 終極密碼Ver.02
程式語言│楓之谷外掛│CSO│爆爆王│跑跑卡丁車│單機遊戲│遊戲討論│ 軟體分享│自由軟體│日常生活
☆☆☆☆☆ 注意 ☆☆☆☆☆
1.本網站所有程式如被防毒偵測屬於"誤判" - (因有加殼關係)
2.如使用後電腦有任何問題或者被盜者,請勿隨意怪罪
3.欲回覆留言者,一律以Google帳戶使用者登入作回覆動作
╠═2013年8月15日 下午1點05分 (特此註明)═╣
*本部落格文章,歡迎各位讀者轉貼至各大論壇* {2014.6.16}
Public Declare Function CEInitialize Lib "ceautoassembler" (ByVal ngPassedPID As Integer, ByVal Phandle As Integer) As Integer
Public Declare Function CEAutoAsm Lib "ceautoassembler" (ByVal Script As String, ByVal AllocID As Boolean, ByVal Alloc As Integer) As Boolean
If hWnd <> 0 Then
CEInitialize(pid, hprocess)
If Function1.Checked = True Then
CEAutoAsm(FunText1.Text, True, 0)
Else
CEAutoAsm(FunText1.Text, False, 0)
End If
Imports System.Runtime.InteropServices
Public Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
Public Declare Function OpenProcessAPI Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Int32, ByVal bInheritHandle As Int32, ByVal dwProcessId As Int32) As Int32
Public Declare Function CloseHandleAPI Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Long) As Long
Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hWnd As IntPtr, <Out()> ByRef lpdwProcessId As IntPtr) As Integer
Public Declare Function CreateToolhelp32Snapshot Lib "kernel32" (ByVal lFlags As Long, ByVal lProcessID As Long) As Long
Public Declare Function Process32First Lib "kernel32" (ByVal hSnapshot As Integer, ByVal lppe As PROCESSENTRY32) As Integer
Public Declare Function Process32Next Lib "kernel32" (ByVal hSapshot As Integer, ByVal lppe As PROCESSENTRY32) As Integer
Public Const PROCESS_ALL_ACCESS = &H1F0FFF
Public hWnd, Handlex, pid, hprocess As Integer
Public Inited As Boolean
Public Structure PROCESSENTRY32
Dim dwSize As Integer
Dim cntUseage As Integer
Dim th32ProcessID As Integer
Dim th32DefaultHeapID As Integer
Dim th32ModuleID As Integer
Dim cntThreads As Integer
Dim th32ParentProcessID As Integer
Dim pcPriClassBase As Integer
Dim swFlags As Integer
Dim szExeFile As String
End Structure
Public Function OpenProcess(Optional ByVal lpPID As Long = -1) As Long
If lpPID = 0 And pid = 0 Then Exit Function
If lpPID > 0 And pid = 0 Then pid = lpPID
Handlex = OpenProcessAPI(PROCESS_ALL_ACCESS, False, pid)
OpenProcess = Handlex
If Handlex > 0 Then Inited = True
End Function
Public Function OpenProcessByProcessName(ByVal lpName As String) As Long
Dim PE32 As PROCESSENTRY32
Dim hSnapshot As Long
pid = 0
hSnapshot = CreateToolhelp32Snapshot(2, 0&) 'TH32CS_SNAPPROCESS = 2
PE32.dwSize = Len(PE32)
Process32First(hSnapshot, PE32)
While pid = 0 And CBool(Process32Next(hSnapshot, PE32))
If Right$(LCase$(Left$(PE32.szExeFile, InStr(1, PE32.szExeFile, Chr(0)) - 1)), Len(lpName)) = LCase$(lpName) Then
pid = PE32.th32ProcessID
End If
End While
CloseHandleAPI(hSnapshot)
OpenProcessByProcessName = OpenProcess()
End Function
Public Function OpenProcessByWindow(ByVal lpWindowName As String, Optional ByVal lpClassName As String = vbNullString) As Long
hWnd = FindWindow(lpClassName, lpWindowName)
GetWindowThreadProcessId(hWnd, pid)
OpenProcessByWindow = OpenProcess(pid)
hprocess = OpenProcessAPI(PROCESS_ALL_ACCESS, False, pid)
End Function
'遊戲鎖定區
OpenProcessByWindow("MapleStory", "StartUpDlgClass")
If pid <> 0 Then
MsgBox("遊戲鎖定成功囉!", 64, "FirstProject_Tipe")
Else
MsgBox("鎖定遊戲失敗!", 16, "FirstProject_Error")
End If