dnf窗口句柄为什么无法获取

来源:百度知道 编辑:UC知道 时间:2024/05/24 07:08:05
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) 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 CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long

Private Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long

Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Private Const PROCESS_ALL_ACCESS = &H1F0FFF

Private Sub Command1_Click()
Dim cc As Long
Dim cc2 As Long
Dim cc3 As Long
cc

- -。孩子你的找句柄是对的
DNF那你可以根据找不到的。因为已经Hook了Findwindow。枚举。以及read等api函数。也就是腾讯的那个safe什么xx的驱动保护。ring0的。
你没法搞的。除非你自己会汇编。或者hook api。恢复中断表。等高端技术
所以建议你还是放弃吧。