【新手求助】关于ReadProcessMemory的一些问题
c#吧
全部回复
仅看楼主
level 1
bdnoob 楼主
用ReadProcessMemory读取内存,
[DllImport("kernel32.dll")]
static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, IntPtr lpBuffer, int nSize, out IntPtr lpNumberOfBytesRead);
第四个参数nSize是否最大为4?1,2,3,4我试了,都正常,超过4就读不出来(lpBuffer长度我给足够的啊)。
请高手指点一下迷津。谢谢[乖]
2018年11月10日 16点11分 1
level 1
bdnoob 楼主
请高手指点一下啊。
2018年11月14日 02点11分 2
level 8
不懂帮顶[滑稽]
2018年11月14日 03点11分 3
level 9
找个 helper 不就行了
2018年11月15日 15点11分 4
level 1
[DllImport("kernel32.dll")]
public static extern Int32 ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, [In, Out] byte[] buffer, UInt32 size, out IntPtr lpNumberOfBytesRead);
2020年06月13日 17点06分 5
level 1
byte[] _OutBytes = new byte[40]; //定义结构体 (LVITEM)
2020年06月13日 17点06分 6
level 1
//获取结构体数据
Win32API.ReadProcessMemory(_ProcessIntPtr, _Memory, _OutBytes, (uint)_OutBytes.Length, out _Out);
2020年06月13日 17点06分 7
1