Delphi写入内存的问题
beginGameh:=findwindow(nil,'植物大战僵尸中文版');GetWindowThreadProcessId(Gameh,GamePid);Gameh...
begin
Gameh:=findwindow(nil,'植物大战僵尸中文版');
GetWindowThreadProcessId(Gameh,GamePid);
GamehProcess:=OpenProcess(PROCESS_VM_READ or PROCESS_VM_WRITE,false,GamePid);
Writeprocessmemory(gamehProcess,Pointer(base),@Maxy,4, WriteByte);
怎么写入不成功啊,帮帮小白吧
能正常编译运行的,base,Maxy这些都有定义的,所以不会是这方面的原因
GamehProcess:=OpenProcess(PROCESS_VM_READ or PROCESS_VM_WRITE,false,GamePid);
这样也不行? 展开
Gameh:=findwindow(nil,'植物大战僵尸中文版');
GetWindowThreadProcessId(Gameh,GamePid);
GamehProcess:=OpenProcess(PROCESS_VM_READ or PROCESS_VM_WRITE,false,GamePid);
Writeprocessmemory(gamehProcess,Pointer(base),@Maxy,4, WriteByte);
怎么写入不成功啊,帮帮小白吧
能正常编译运行的,base,Maxy这些都有定义的,所以不会是这方面的原因
GamehProcess:=OpenProcess(PROCESS_VM_READ or PROCESS_VM_WRITE,false,GamePid);
这样也不行? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询