C# 进程启动存储器
如何在c中获取进程的起始内存位置# 我一直在这样做,但不知道C# 进程启动存储器,c#,memory,C#,Memory,如何在c中获取进程的起始内存位置# 我一直在这样做,但不知道 Process currentProcess = System.Diagnostics.Process.GetCurrentProcess(); long totalBytesOfMemoryUsed = currentProcess.WorkingSet64; currentProcess.ProcessName currentProcess.PrivateMemorySize currentProcess.VirtualMem
Process currentProcess = System.Diagnostics.Process.GetCurrentProcess();
long totalBytesOfMemoryUsed = currentProcess.WorkingSet64;
currentProcess.ProcessName
currentProcess.PrivateMemorySize
currentProcess.VirtualMemorySize
试试这个:
currentProcess.Modules[0].BaseAddress
你为什么需要这些信息?(你需要什么信息还不是100%清楚。)你的问题并不完全是重复的,但非常接近。@cMinor:嗯,它们是流程模块。见备注部分。索引
0
始终是基本过程。