使用.Net Core在Linux中读取另一个进程的内存

时间:2019-05-25 16:23:31

标签: c# linux .net-core

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

在Windows上,我正在使用return 0

cin.ignore();  
cin.get();  
return 0;

但是如何在Linux上实现呢?

我想从地址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); 中读取值

0 个答案:

没有答案