关于内存操作的问题
本人想做一个工具,实现下面的功能:1.根据A数据查找到该数据在指定句柄里的内存地址
2.对该地址的值进行监控,也就是读取该内存的值
例如:我要在句柄为 56412的窗口里找 8E008000 这个数值 在这个窗口里的内存,然后进行监控。
谢谢各位,我百度查了相关内容,但是关于内存的操作,我还是不懂,所以麻烦大家帮忙写一段代码让我学习学习,谢谢了啊 --------------------编程问答-------------------- http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/8ed8bb56-07d9-4df8-bdb1-357e88cffb01 --------------------编程问答-------------------- http://wcb0414.blog.163.com/blog/static/449938242010102895743668/
http://download.csdn.net/source/1859731 --------------------编程问答-------------------- 这让我想到了当年的游戏修改器。。。。。。 --------------------编程问答-------------------- 哈哈 谢谢楼上几位
确实,我想做一个游戏辅助工具的,这。。。高人啊,我先去看看 --------------------编程问答--------------------
网站的内容是这样:
Hi, all.
The protype of ReadProcessMemory is :
Code Snippet
BOOL ReadProcessMemory(
HANDLE hProcess,
LPCVOID lpBaseAddress,
LPVOID lpBuffer,
SIZE_T nSize,
SIZE_T* lpNumberOfBytesRead );
Parameters
hProcess
[in] A handle to the process with memory that is being read. The handle must have PROCESS_VM_READ access to the process.
lpBaseAddress
[in] A pointer to the base address in the specified process from which to read. Before any data transfer occurs, the system verifies that all data in the base address and memory of the specified size is accessible for read access, and if it is not accessible the function fails.
lpBuffer
[out] A pointer to a buffer that receives the contents from the address space of the specified process.
nSize
[in] The number of bytes to be read from the specified process.
lpNumberOfBytesRead
[out] A pointer to a variable that receives the number of bytes transferred into the specified buffer. If lpNumberOfBytesRead is NULL, the parameter is ignored.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is 0 (zero). To get extended error information, call GetLastError.
The function fails if the requested read operation crosses into an area of the process that is inaccessible.
表示英语太差没看懂。。。
麻烦一下各位了,帮忙写个代码给小弟吧,万分感谢 --------------------编程问答-------------------- 自己来顶,继续找答案 --------------------编程问答-------------------- 外挂,搜索C# 外挂,有源码
补充:.NET技术 , C#