我正在尝试写入进程内存,所以我从视频中复制了代码。但是这个视频没有显示功能“ReadInt32”,有人可以发给我最终能够运行这个应用程序吗?
ReadInt32(进程,(IntPtr)地址)
public static long GetRealAddress(IntPtr process, IntPtr baseAddress, int[] offsets)
{
var address = baseAddress.ToInt64();
foreach (var offset in offsets)
{
address = ReadInt32(process, (IntPtr)address) + offset;
}
return address;
}
代码中突出显示的错误:
指针:( 类型为浮点型)