开始记忆过程

时间:2012-03-21 23:26:20

标签: c# memory

如何在c#

中获取进程的起始内存位置

我一直这样做,但不知道

Process currentProcess  = System.Diagnostics.Process.GetCurrentProcess();
long totalBytesOfMemoryUsed = currentProcess.WorkingSet64;

currentProcess.ProcessName
currentProcess.PrivateMemorySize
currentProcess.VirtualMemorySize

1 个答案:

答案 0 :(得分:3)

试试这个:

currentProcess.Modules[0].BaseAddress