首页 > 解决方案 > 使用 .Net Core 在 Linux 中读取另一个进程的内存

问题描述

我想问一下在Linux上使用.NET Core时是否可以读取其他进程的内存

在我正在使用的 Windows 上DllImports

[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(int dwDesiredAccess, bool bInheritHandle, int dwProcessId);

[DllImport("kernel32.dll")]
public static extern bool ReadProcessMemory(int hProcess, int lpBaseAddress, byte[] lpBuffer, int dwSize, ref int lpNumberOfBytesRead);

但是我怎样才能在 Linux 上实现呢?

我想从地址中读取值,例如ProcessBaseMemoryAddresss+0x210438

标签: c#linux.net-core

解决方案


推荐阅读