本人想做一个工具,实现下面的功能:
1.根据A数据查找到该数据在指定句柄里的内存地址
2.对该地址的值进行监控,也就是读取该内存的值例如:我要在句柄为 56412的窗口里找 8E008000 这个数值 在这个窗口里的内存,然后进行监控。谢谢各位,我百度查了相关内容,但是关于内存的操作,我还是不懂,所以麻烦大家帮忙写一段代码让我学习学习,谢谢了啊

解决方案 »

  1.   

    http://social.msdn.microsoft.com/forums/en-US/csharpgeneral/thread/8ed8bb56-07d9-4df8-bdb1-357e88cffb01
      

  2.   

    http://wcb0414.blog.163.com/blog/static/449938242010102895743668/http://download.csdn.net/source/1859731
      

  3.   


    网站的内容是这样:
    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.
    表示英语太差没看懂
    麻烦一下各位了,帮忙写个代码给小弟吧,万分感谢