我如何确定另一个进程的内存类型? [英] How can i determine memory type of another process?

查看:83
本文介绍了我如何确定另一个进程的内存类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!使用OpenProcess,VirtualQueryEx和ReadProcessMemory等WINapi函数,我可以访问程序的所有虚拟内存地址,并使用大循环查找所需的变量。但是我如何定义这个变量的类型呢?我的意思是,
在地址0x12345678变量65中,它可能是简单的65int,或65 unsigned long int,或者可能是char大写'A'。

Hi everyone! Using WINapi functions like OpenProcess, VirtualQueryEx and ReadProcessMemory, i can get access to all virtual memory addresses of program, and find needed variables using huge loop. But how can i define which type this variable is? I mean, in address 0x12345678 variable 65, it might be simple 65int, or 65 unsigned long int, or might be a char uppercase 'A'.

我怎样才能了解这些事情,以及像CheatEngine这样的软件如何定义记忆所拥有的类型。我应该在哪里寻求了解这些事情?

How can i get to know such things, and how software like CheatEngine can define what type that memory possess. And where should i seek to get to know about such things?




推荐答案

你好,

软件本身知道变量的类型(在源代码中定义)。

the software itself knows which type a variable has (it's defined in the source code).

内存本身不知道哪种类型变量用于内存块。

The memory itself doesn't know which type of variable is used in a memory block.

Cheat Engine有一个反汇编程序。我认为你只有在反汇编程序时才能知道类型。

Cheat Engine has a disassembler. I think you can only get to know the type when you disassemble the programme.

问候,Guido


这篇关于我如何确定另一个进程的内存类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆