早教吧 育儿知识 作业答案 考试题库 百科 知识分享

谁帮我解释下这段VB代码的意思,要详细点PrivateDeclareFunctionFindWindowLib"user32"Alias"FindWindowA"(ByVallpClassNameAsString,ByVallpWindowNameAsString)AsLongPrivateDeclareFunctionGetWindowThreadProcessIdLib"us

题目详情
谁帮我解释下这段VB代码的意思,要详细点Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByVal lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const SYNCHRONIZE = &H100000 Const SPECIFIC_RIGHTS_ALL = &HFFFF Const STANDARD_RIGHTS_ALL = &H1F0000 Const PROCESS_ALL_ACCESS = STANDARD_RIGHTS_REQUIRED Or SYNCHRONIZE Or &HFFF Const PROCESS_VM_OPERATION = &H8& Const PROCESS_VM_READ = &H10& Const PROCESS_VM_WRITE = &H20& Privat...
▼优质解答
答案和解析
这是一个读取游戏的内容数据中相关地址的数据,比如红,蓝等,再与设定的数据比较,如果小于某个值,就模拟按键的程序 这就是几个找游戏与读内存的API+一些基本的流程结构来实现的 一个一个的来说明,太麻烦了